@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
--bg-color: #0a0a0c;
--card-bg: #131316;
--card-hover: #18181b;
--border: #27272a;
--primary: #a855f7;
--primary-hover: #9333ea;
--bntred: #bd0b49;
--bntred-hover: #75062d;
--text-main: #ffffff;
--text-muted: #a1a1aa;
--success: #22c55e;
--danger: #ef4444;
--gold: #fbbf24;
--blue: #3b82f6;
}

* { margin: 0; padding: 0; box-sizing: border-box; outline: none; font-family: 'Inter', sans-serif; }
html { scroll-behavior: smooth; }
body { background-color: var(--bg-color); color: var(--text-main); line-height: 1.6; overflow-x: hidden; min-height: 100vh; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }


.container {
max-width: 1200px;
width: 100%;
margin: 0 auto;
padding: 0 20px;
}
.main-padding { padding-top: 120px; padding-bottom: 50px; }


nav.navbar {
position: fixed; top: 0; width: 100%; height: 70px;
background: rgba(10, 10, 12, 0.95);
border-bottom: 1px solid var(--border); z-index: 1000;
display: flex; align-items: center; justify-content: center;
}
.nav-content { display: flex; justify-content: space-between; align-items: center; height: 100%; }
.logo { font-size: 22px; font-weight: 900; letter-spacing: 1px; text-transform: uppercase; color: white; }
.logo span { color: var(--primary); }
.nav-links { display: flex; gap: 30px; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.play-btn-nav { background: var(--primary); padding: 8px 20px; border-radius: 6px; font-weight: 600; font-size: 14px; }
.play-btn-nav:hover { background: var(--primary-hover); }


.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { font-size: 36px; font-weight: 800; margin-bottom: 10px; }
.section-title p { color: var(--text-muted); }


.grid-3, .features-grid, .extra-features-grid, .towns-grid {
display: grid;

grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
gap: 30px;
margin-bottom: 50px;
justify-content: center;
}

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.achievements-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }


.card, .feature-card, .extra-card, .faq-item, .town-card, .top-card, .stat-card, .char-card, .app-card, .settings-card {
background: var(--card-bg); border: 1px solid var(--border); border-radius: 16px; padding: 30px; transition: 0.3s; position: relative; overflow: hidden;
}
.card:hover, .feature-card:hover, .extra-card:hover, .town-card:hover {
transform: translateY(-5px); border-color: var(--primary);
}


.btn-submit, .hero-btn, .btn {
width: 100%; padding: 14px; background: var(--primary); color: white; border: none; border-radius: 8px; font-weight: 700; cursor: pointer; transition: 0.3s; font-size: 16px; display: inline-block; text-align: center;
}
.btn-submit:hover, .hero-btn:hover { background: var(--primary-hover); }
.hero-btn { width: auto; padding: 16px 45px; box-shadow: 0 0 25px rgba(168, 85, 247, 0.4); }

input, select, textarea, .input-dark {
width: 100%; padding: 12px; background: var(--bg-color); border: 1px solid var(--border); border-radius: 8px; color: white; margin-bottom: 10px;
}
input:focus, select:focus, textarea:focus { border-color: var(--primary); }


.hero { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; background: radial-gradient(circle at top, #151518 0%, var(--bg-color) 100%); padding-top: 60px; }
.hero h1 { font-size: 64px; font-weight: 900; line-height: 1.1; margin-bottom: 25px; }
.stats-wrapper { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin: 80px 0 100px; }
.stat-box { flex: 1; min-width: 200px; max-width: 280px; background: var(--card-bg); padding: 20px; border-radius: 12px; border: 1px solid var(--border); text-align: center; }
.stat-number { font-size: 32px; font-weight: 800; color: white; }
.icon-box { width: 50px; height: 50px; background: #1f1f23; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 20px; color: var(--primary); }
.feature-tag { background: rgba(168, 85, 247, 0.1); color: var(--primary); padding: 4px 10px; border-radius: 4px; font-size: 12px; font-weight: 600; text-transform: uppercase; margin-bottom: 10px; display: inline-block; }
.faq-item { margin-bottom: 10px; }
.faq-question { font-size: 18px; font-weight: 700; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.faq-question::before { content: "?"; display: inline-flex; width: 24px; height: 24px; background: var(--primary); border-radius: 50%; align-items: center; justify-content: center; font-size: 14px; }
.ip-highlight { color: white; background: #27272a; padding: 2px 6px; border-radius: 4px; font-family: monospace; }


body.auth-page {
display: flex; align-items: center; justify-content: center; height: 100vh;
background: #0a0a0c;
position: relative;
}
.input-group {
display: flex;
gap: 10px;
}
.fade-in {
animation: fadeIn 0.5s;
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(-10px); }
to { opacity: 1; transform: translateY(0); }
}

body.auth-page::before {
content: ''; position: absolute; width: 300px; height: 300px;
background: var(--primary); opacity: 0.05; filter: blur(100px); z-index: -1;
}

.auth-card { width: 100%; max-width: 400px; padding: 40px; box-shadow: none; border: 1px solid var(--border); }

.tabs { display: flex; background: #1f1f23; border-radius: 8px; padding: 4px; margin-bottom: 30px; }
.tab { flex: 1; padding: 10px; text-align: center; cursor: pointer; border-radius: 6px; font-weight: 600; font-size: 14px; color: var(--text-muted); }
.tab.active { background: #27272a; color: white; }
.form-row { display: flex; gap: 20px; }
.hidden { display: none; }



.profile-header {
display: flex;
gap: 30px;
flex-wrap: wrap;
margin-bottom: 40px;

align-items: flex-start;
}

.char-card {
flex: 1;
min-width: 300px;
text-align: center;
background: var(--card-bg);
border: 1px solid var(--card-border);
border-radius: 16px;
padding: 40px;


position: -webkit-sticky;
position: sticky;
top: 1000px;
}
.skin-view { width: 120px; height: 120px; background-size: cover; margin: 0 auto 20px; border-radius: 12px; border: 1px solid var(--border); }
.rank-badge { background: linear-gradient(45deg, var(--primary), #7c3aed); padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 700; display: inline-block; margin-bottom: 20px; }
.level-container { width: 100%; margin-bottom: 25px; text-align: left; }
.level-bar-bg { width: 100%; height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; margin-top: 5px; }
.level-bar-fill {
height: 100%;
background: var(--success);
width: var(--fill-width, 55%);
}
.action-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn-sec { background: var(--border); color: white; } .btn-sec:hover { border-color: var(--primary); }
.btn-logout { background: transparent; border: 1px solid var(--danger); color: var(--danger); grid-column: span 2; }
.val-money { color: var(--gold); } .val-kill { color: var(--danger); } .val-time { color: var(--blue); }


body.admin-page { display: flex; flex-direction: row; overflow: hidden; background: #0a0a0c; }
.sidebar { width: 260px; background: var(--card-bg); border-right: 1px solid var(--border); padding: 30px; position: fixed; height: 100vh; z-index: 100; display: flex; flex-direction: column; }
.nav-menu { display: flex; flex-direction: column; gap: 8px; flex-grow: 1; }
.nav-item { padding: 12px 16px; color: var(--text-muted); border-radius: 8px; font-weight: 500; cursor: pointer; display: flex; gap: 12px; }
.nav-item:hover { background: rgba(255,255,255,0.05); color: white; }
.nav-item.active { background: rgba(168, 85, 247, 0.1); color: var(--primary); }
.admin-content { margin-left: 260px; width: 100%; padding: 40px 60px; overflow-y: auto; height: 100vh; }
.admin-badge { background: var(--primary); padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 700; }
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.users-table { width: 100%; border-collapse: collapse; background: #18181b; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); }
.users-table th { text-align: left; padding: 15px 25px; background: #202024; color: var(--text-muted); font-size: 12px; text-transform: uppercase; }
.users-table td { padding: 15px 25px; border-bottom: 1px solid var(--border); font-size: 14px; }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; }
.online { background: var(--success); box-shadow: 0 0 10px var(--success); } .offline { background: #52525b; } .banned { background: var(--danger); }
.switch { position: relative; display: inline-block; width: 50px; height: 26px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #3f3f46; transition: .4s; border-radius: 34px; }
.slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 4px; bottom: 4px; background-color: white; transition: .4s; border-radius: 50%; }
input:checked + .slider { background-color: var(--primary); }
input:checked + .slider:before { transform: translateX(24px); }
.setting-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }


.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }


@media (max-width: 768px) {
.hero h1 { font-size: 40px; }
.nav-links { display: none; }
body.admin-page { flex-direction: column; overflow: auto; }
.sidebar { position: relative; width: 100%; height: auto; }
.admin-content { margin-left: 0; padding: 20px; height: auto; overflow: visible;}
}


:root {
--bg-color: #0a0a0c;
--card-bg: #131316;
--card-border: #27272a;
--primary: #a855f7;
--primary-hover: #9333ea;
--text-main: #ffffff;
--text-muted: #a1a1aa;
--success: #22c55e;
--danger: #ef4444;
--gold: #fbbf24;
}

* { margin: 0; padding: 0; box-sizing: border-box; outline: none; font-family: 'Inter', sans-serif; }
html { scroll-behavior: smooth; }
body { background-color: var(--bg-color); color: var(--text-main); line-height: 1.6; min-height: 100vh; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }


.container { max-width: 1200px; width: 100%; margin: 0 auto; padding: 0 20px; }
.main-padding { padding-top: 120px; padding-bottom: 80px; }


nav.navbar {
position: fixed; top: 0; width: 100%; height: 80px;
background: rgba(10, 10, 12, 0.9); backdrop-filter: blur(12px);
border-bottom: 1px solid var(--card-border); z-index: 1000;
display: flex; align-items: center; justify-content: center;
}
.nav-content { display: flex; justify-content: space-between; align-items: center; height: 100%; }
.logo { font-size: 24px; font-weight: 900; letter-spacing: 1px; text-transform: uppercase; color: white; }
.logo span { color: var(--primary); }
.nav-links { display: flex; gap: 30px; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.play-btn-nav { background: var(--primary); padding: 10px 24px; border-radius: 8px; font-weight: 600; font-size: 14px; }
.play-btn-nav:hover { background: var(--primary-hover); }


.section-title { text-align: center; margin-bottom: 60px; }
.section-title h2 { font-size: 36px; font-weight: 800; margin-bottom: 10px; }
.section-title p { color: var(--text-muted); }


.card, .feature-card, .extra-card, .town-card, .stat-box {
background: var(--card-bg);
border: 1px solid var(--card-border);
border-radius: 16px;
padding: 30px;
transition: all 0.3s ease;
position: relative;
overflow: hidden;
}
.card:hover, .feature-card:hover, .extra-card:hover, .town-card:hover {
transform: translateY(-5px);
border-color: var(--primary);
box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}


.grid-3 {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 30px;
}


.btn-submit { width: 100%; padding: 14px; background: var(--primary); color: white; border: none; border-radius: 8px; font-weight: 700; cursor: pointer; transition: 0.3s; }
.btn-submit:hover { background: var(--primary-hover); }
input, select, textarea { width: 100%; padding: 12px; background: #0a0a0c; border: 1px solid var(--card-border); border-radius: 8px; color: white; margin-bottom: 10px; }
input:focus, select:focus, textarea:focus { border-color: var(--primary); }


body.admin-page { display: flex; overflow: hidden; height: 100vh; }

.sidebar {
width: 280px;
background: #131316;
border-right: 1px solid var(--card-border);
padding: 30px;
display: flex; flex-direction: column;
flex-shrink: 0;
}

.admin-content {
flex-grow: 1;
background: #0a0a0c;
padding: 40px 60px;
overflow-y: auto;
}

.admin-header {
display: flex; justify-content: space-between; align-items: center;
margin-bottom: 40px; padding-bottom: 20px; border-bottom: 1px solid var(--card-border);
}


.apps-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
gap: 25px;
}


.app-card {
background: #18181b;
border: 1px solid var(--card-border);
border-radius: 12px;
padding: 25px;
display: flex; flex-direction: column;
}


.settings-card {
max-width: 600px;
background: #18181b;
border: 1px solid var(--card-border);
border-radius: 12px;
padding: 30px;
}


.nav-item {
padding: 12px 15px; color: var(--text-muted); border-radius: 8px; margin-bottom: 5px; cursor: pointer; font-weight: 500; display: flex; gap: 10px; align-items: center;
}
.nav-item:hover { background: rgba(255,255,255,0.05); color: white; }
.nav-item.active { background: rgba(168, 85, 247, 0.1); color: var(--primary); }

.users-table { width: 100%; border-collapse: collapse; background: #18181b; border-radius: 12px; border: 1px solid var(--card-border); }
.users-table th { text-align: left; padding: 15px 25px; background: #202024; color: var(--text-muted); font-size: 12px; text-transform: uppercase; }
.users-table td { padding: 15px 25px; border-bottom: 1px solid var(--card-border); }


.setting-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.switch { position: relative; display: inline-block; width: 50px; height: 26px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #3f3f46; transition: .4s; border-radius: 34px; }
.slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 4px; bottom: 4px; background-color: white; transition: .4s; border-radius: 50%; }
input:checked + .slider { background-color: var(--primary); }
input:checked + .slider:before { transform: translateX(24px); }


body.auth-page { display: flex; align-items: center; justify-content: center; height: 100vh; background: #0a0a0c; position: relative; }

body.auth-page::before { content: ''; position: absolute; width: 400px; height: 400px; background: var(--primary); opacity: 0.1; filter: blur(150px); z-index: -1; }

.auth-card { width: 100%; max-width: 420px; padding: 40px; background: #131316; border: 1px solid var(--card-border); border-radius: 20px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.tabs { display: flex; background: #1f1f23; border-radius: 8px; padding: 4px; margin-bottom: 30px; }
.tab { flex: 1; padding: 10px; text-align: center; cursor: pointer; border-radius: 6px; font-weight: 600; color: #888; }
.tab.active { background: #27272a; color: white; }


.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeUp 0.4s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }


.hero { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; background: radial-gradient(circle at top, #1e1b2e 0%, var(--bg-color) 70%); padding-top: 60px; }
.hero h1 { font-size: 70px; font-weight: 900; line-height: 1.1; margin-bottom: 25px; letter-spacing: -2px; }
.hero-btn { display: inline-block; background: var(--primary); color: white; font-size: 20px; font-weight: 700; padding: 18px 50px; border-radius: 12px; box-shadow: 0 0 30px rgba(168, 85, 247, 0.4); transition: 0.3s; }
.hero-btn:hover { transform: translateY(-3px); box-shadow: 0 0 50px rgba(168, 85, 247, 0.6); }


.profile-header { display: flex; gap: 30px; flex-wrap: wrap; margin-bottom: 40px; }
.char-card { flex: 1; min-width: 300px; text-align: center; padding: 40px; }
.skin-view { width: 140px; height: 140px; background-size: cover; margin: 0 auto 20px; border-radius: 16px; border: 2px solid var(--card-border); }
.achievements-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 15px; }
.ach-card { display: flex; gap: 15px; align-items: center; padding: 15px; background: #18181b; border-radius: 12px; border: 1px solid var(--card-border); }
.ach-card.unlocked { border-color: var(--success); background: rgba(34, 197, 94, 0.05); }


@media (max-width: 768px) {
body.admin-page { flex-direction: column; overflow: auto; height: auto; }
.sidebar { width: 100%; height: auto; position: relative; }
.admin-content { margin-left: 0; width: 100%; height: auto; padding: 20px; }
.hero h1 { font-size: 40px; }
.nav-links { display: none; }
}


.modal-backdrop {
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.8);
backdrop-filter: blur(5px);
display: flex;
align-items: center;
justify-content: center;
z-index: 2000;
opacity: 0;
pointer-events: none;
transition: opacity 0.2s ease;
}

.modal-backdrop.active {
opacity: 1;
pointer-events: auto;
}

.modal {
width: 100%;
max-width: 420px;
background: var(--card-bg);
border: 1px solid var(--border);
border-radius: 20px;
padding: 30px;
box-shadow: 0 20px 50px rgba(0,0,0,0.5);
transform: translateY(20px);
transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-money-transfer {
width: 100%;
max-width: 60%;
background: var(--card-bg);
border: 1px solid var(--border);
border-radius: 20px;
padding: 30px;
box-shadow: 0 20px 50px rgba(0,0,0,0.5);
transform: translateY(20px);
transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}


#historyModal .modal-money-transfer {
max-height: 85vh;
display: flex;
flex-direction: column;
}


#historyModal .modal-money-transfer-body {
overflow-y: auto;
padding-right: 12px;
flex: 1;
min-height: 0;
scrollbar-gutter: stable both-edges;
}

#historyModal .modal-money-transfer-body {
overflow-y: auto;
padding-right: 12px;
flex: 1;
min-height: 0;
scrollbar-gutter: stable both-edges;
scrollbar-width: thin;
scrollbar-color: rgba(168, 85, 247, 0.75) rgba(255, 255, 255, 0.06);
}


#historyModal .modal-money-transfer-body::-webkit-scrollbar {
width: 10px;
}
#historyModal .modal-money-transfer-body::-webkit-scrollbar-track {
background: rgba(255, 255, 255, 0.06);
border-radius: 999px;
}
#historyModal .modal-money-transfer-body::-webkit-scrollbar-thumb {
background: rgba(168, 85, 247, 0.75);
border-radius: 999px;
border: 2px solid rgba(0, 0, 0, 0.35);
}
#historyModal .modal-money-transfer-body::-webkit-scrollbar-thumb:hover {
background: rgba(168, 85, 247, 0.95);
}

.modal-backdrop.active .modal {
transform: translateY(0);
}

.modal-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 25px;
}

.modal-header h3 {
margin: 0;
font-size: 22px;
font-weight: 800;
}

.close-btn {
background: none;
border: none;
color: var(--text-muted);
font-size: 28px;
cursor: pointer;
line-height: 1;
transition: 0.2s;
}
.close-btn:hover { color: white; }

.label-text {
font-size: 13px;
color: var(--text-muted);
margin-bottom: 12px;
font-weight: 500;
}


.amount-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 10px;
margin-bottom: 15px;
}

.amount-btn {
background: rgba(255,255,255,0.03);
border: 1px solid var(--border);
color: var(--text-muted);
padding: 10px 0;
border-radius: 10px;
cursor: pointer;
font-weight: 600;
transition: 0.2s;
}

.amount-btn:hover {
background: rgba(255,255,255,0.08);
color: white;
}

.amount-btn.selected {
background: var(--primary);
border-color: var(--primary);
color: white;
box-shadow: 0 4px 15px rgba(168, 85, 247, 0.4);
}


.input-wrapper {
position: relative;
margin-bottom: 20px;
}

.custom-input {
width: 100%;
background: rgba(0,0,0,0.2);
border: 1px solid var(--border);
border-radius: 12px;
padding: 14px;
color: white;
font-size: 15px;
outline: none;
transition: 0.2s;
}
.custom-input:focus {
border-color: var(--primary);
}
.currency-symbol {
position: absolute;
right: 15px;
top: 50%;
transform: translateY(-50%);
color: var(--text-muted);
pointer-events: none;
}


.custom-checkbox {
display: flex;
align-items: center;
cursor: pointer;
user-select: none;
font-size: 14px;
}
.custom-checkbox input { display: none; }

.checkmark {
width: 20px;
height: 20px;
background: rgba(255,255,255,0.05);
border: 1px solid var(--border);
border-radius: 6px;
margin-right: 10px;
position: relative;
transition: 0.2s;
}

.custom-checkbox input:checked ~ .checkmark {
background: var(--primary);
border-color: var(--primary);
}


.checkmark:after {
content: "";
position: absolute;
display: none;
left: 6px;
top: 2px;
width: 6px;
height: 11px;
border: solid white;
border-width: 0 2px 2px 0;
transform: rotate(45deg);
}
.custom-checkbox input:checked ~ .checkmark:after { display: block; }


.gift-section {
margin-bottom: 25px;
background: rgba(255,255,255,0.02);
padding: 15px;
border-radius: 12px;
}

.gift-input-block {
margin-top: 15px;
opacity: 0;
transform: translateY(-10px);
animation: slideDown 0.3s forwards;
}

@keyframes slideDown {
to { opacity: 1; transform: translateY(0); }
}


.modal-footer-col {
display: flex;
flex-direction: column;
gap: 15px;
}
.offer-cb .cb-label {
font-size: 13px;
}
.offer-cb a {
color: var(--primary);
text-decoration:
underline;
}

.btn-primary-glow {
width: 100%;
padding: 16px;
background: var(--primary);
color: white;
border: none;
border-radius: 12px;
font-weight: 700;
font-size: 16px;
cursor: pointer;
box-shadow: 0 0 20px rgba(168, 85, 247, 0.3);
transition: 0.3s;
}
.btn-primary-glow:hover {
background: var(--primary-hover);
box-shadow: 0 0 30px rgba(168, 85, 247, 0.5);
transform: translateY(-2px);
}
.btn-primary-glow:disabled {
opacity: 0.7;
cursor: not-allowed;
transform: none;
}

.error-msg {
color: var(--danger);
font-size: 13px;
text-align: center;
background: rgba(239, 68, 68, 0.1);
padding: 8px;
border-radius: 8px;
}

.btn-border-glow {
position: relative;
border: 2px solid transparent;
transition: all 0.3s ease;
}

.btn-border-glow::before {
content: '';
position: absolute;
inset: -2px;
background: linear-gradient(45deg, var(--primary), #c084fc, var(--primary));
border-radius: inherit;
opacity: 0;
z-index: -1;
transition: opacity 0.3s;
}

.btn-border-glow:hover::before {
opacity: 1;
}

.btn-border-glow:hover {
border-color: transparent;
color: white;
transform: scale(1.05);
}




#posts-container {
display: flex;
flex-direction: column;
gap: 20px;
margin-top: 30px;
}


.create-post-block {
position: relative;
background: linear-gradient(145deg, #18181b, #131316);
border: 1px solid rgba(255, 255, 255, 0.05);
box-shadow: 0 10px 30px rgba(0,0,0,0.3);
margin-bottom: 40px !important;
z-index: 10;
}


.create-post-block textarea {
background: rgba(0, 0, 0, 0.3);
border: 1px solid var(--border);
border-radius: 12px;
padding: 15px;
color: white;
font-size: 15px;
resize: none;
transition: 0.3s;
}

.create-post-block textarea:focus {
background: rgba(0, 0, 0, 0.5);
border-color: var(--primary);
box-shadow: 0 0 15px rgba(168, 85, 247, 0.1);
}


.post-actions {
margin-top: 15px;
padding-top: 15px;
border-top: 1px solid rgba(255, 255, 255, 0.05);
display: flex;
justify-content: space-between;
align-items: center;
}


.btn-attach {
background: rgba(255, 255, 255, 0.03);
color: var(--text-muted);
border: 1px solid var(--border);
padding: 8px 16px;
border-radius: 8px;
font-weight: 500;
font-size: 13px;
cursor: pointer;
transition: 0.3s;
display: flex;
align-items: center;
gap: 8px;
}

.btn-attach:hover {
background: rgba(255, 255, 255, 0.1);
color: white;
border-color: white;
}


.btn-pub {
background: var(--primary);
color: white;
border: none;
padding: 8px 24px;
border-radius: 8px;
font-weight: 700;
font-size: 14px;
cursor: pointer;
box-shadow: 0 0 15px rgba(168, 85, 247, 0.3);
transition: 0.3s;
transform: translateY(0);
}

.btn-pub:hover {
background: var(--primary-hover);
box-shadow: 0 0 25px rgba(168, 85, 247, 0.6);
transform: translateY(-2px);
}


.edit-status-btn {
width: 30px;
height: 30px;
border-radius: 50%;
background: rgba(255, 255, 255, 0.05);
border: 1px solid transparent;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: 0.2s;
color: var(--text-muted);
}

.edit-status-btn:hover {
background: var(--primary);
color: white;
box-shadow: 0 0 10px rgba(168, 85, 247, 0.4);
}



.profile-container {
display: grid;
grid-template-columns: 300px 1fr;
gap: 20px;
margin-top: 20px;
align-items: start;
}
@media (max-width: 900px) {
.profile-container { grid-template-columns: 1fr; }
}

.avatar-box {
position: relative;
width: 100%;
aspect-ratio: 1;
border-radius: 16px;
overflow: hidden;
background: #151518;
border: 1px solid var(--border);
margin-bottom: 15px;
}
.avatar-img {
width: 100%;
height: 100%;
background-repeat: no-repeat;
background-position: center;
background-size: cover;
}

.user-header {
display: flex;
justify-content: space-between;
align-items: flex-start;
margin-bottom: 20px;
padding-bottom: 20px;
border-bottom: 1px solid var(--border);
gap: 16px;
}

.user-title h1 {
font-size: 28px;
font-weight: 800;
margin-bottom: 5px;
line-height: 1.2;
word-break: break-word;
}

.role-badge {
background: rgba(168, 85, 247, 0.1);
color: var(--primary);
padding: 4px 10px;
border-radius: 6px;
font-size: 13px;
font-weight: 600;
display: inline-block;
}

.level-circle {
text-align: right;
min-width: 90px;
}

.mini-stats {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
gap: 15px;
margin-bottom: 25px;
}
.mini-stat-item {
background: rgba(255,255,255,0.02);
padding: 12px;
border-radius: 12px;
text-align: center;
border: 1px solid transparent;
transition: 0.2s;
}
.mini-stat-item:hover {
background: rgba(255,255,255,0.05);
border-color: var(--border);
}
.ms-val {
font-size: 18px;
font-weight: 700;
display: block;
margin-bottom: 2px;
}
.ms-label {
font-size: 12px;
color: var(--text-muted);
text-transform: uppercase;
font-weight: 600;
}

.achievements-compact {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(48px, 1fr));
gap: 8px;
max-height: 240px;
overflow-y: auto;
padding-right: 5px;
}
.achievements-compact::-webkit-scrollbar { width: 4px; }
.achievements-compact::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.ach-icon-box {
aspect-ratio: 1;
background: #1f1f23;
border-radius: 8px;
display: flex;
align-items: center;
justify-content: center;
font-size: 20px;
cursor: pointer;
border: 1px solid transparent;
transition: 0.2s;
position: relative;
user-select: none;
}
.ach-icon-box.locked { opacity: 0.3; filter: grayscale(1); }
.ach-icon-box:hover { border-color: var(--primary); background: rgba(168, 85, 247, 0.1); }

.wall-input-wrapper {
display: flex;
gap: 15px;
margin-bottom: 12px;
align-items: flex-start;
}
.wall-avatar-mini {
width: 40px;
height: 40px;
border-radius: 10px;
background: #333;
flex-shrink: 0;
background-size: cover;
background-position: center;
}
.wall-textarea {
width: 100%;
background: var(--bg-color);
border: 1px solid var(--border);
border-radius: 12px;
padding: 15px;
color: white;
min-height: 60px;
resize: vertical;
transition: 0.2s;
}
.wall-textarea:focus {
border-color: var(--primary);
box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.1);
}

.post-card {
border-bottom: 1px solid var(--border);
padding: 20px 0;
}
.post-card:last-child { border-bottom: none; }

.post-header {
display: flex;
gap: 12px;
margin-bottom: 12px;
align-items: center;
}
.post-author { font-weight: 700; color: white; font-size: 15px; }
.post-time { font-size: 12px; color: var(--text-muted); }

.btn-profile-action {
display: block;
width: 100%;
padding: 12px;
margin-bottom: 10px;
border-radius: 8px;
text-align: center;
font-weight: 600;
cursor: pointer;
font-size: 14px;
border: none;
transition: 0.2s;
}
.btn-act-primary {
background: var(--card-hover);
color: white;
border: 1px solid var(--border);
}
.btn-act-primary:hover { background: var(--border); }
.btn-act-accent {
background: var(--primary);
color: white;
box-shadow: 0 4px 15px rgba(168, 85, 247, 0.2);
}
.btn-act-accent:hover { background: var(--primary-hover); transform: translateY(-2px); }
.btn-act-red {
background: var(--bntred);
color: white;
box-shadow: 0 4px 15px rgba(168, 85, 247, 0.2);
}
.btn-act-red:hover { background: var(--bntred-hover); transform: translateY(-2px); }


.status-line {
margin-top: 10px;
font-size: 14px;
color: var(--text-muted);
display: inline-flex;
align-items: center;
gap: 8px;
flex-wrap: wrap;
}
.status-label { color: var(--text-muted); }
.status-text { color: white; }
.btn-icon {
width: 30px;
height: 30px;
display: inline-flex;
align-items: center;
justify-content: center;
border-radius: 10px;
border: 1px solid var(--border);
background: rgba(255,255,255,0.03);
color: var(--text-muted);
cursor: pointer;
transition: 0.2s;
padding: 0;
}
.btn-icon:hover {
background: rgba(168, 85, 247, 0.12);
border-color: rgba(168, 85, 247, 0.5);
color: white;
}

.status-edit {
margin-top: 12px;
display: grid;
gap: 10px;
max-width: 620px;
}
.status-edit-actions {
display: flex;
gap: 10px;
justify-content: flex-end;
flex-wrap: wrap;
}
.status-edit[hidden] { display: none !important; }

.status-banner{
margin-top: 12px;
padding: 12px 14px;
border-radius: 14px;
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;

background: rgba(239, 68, 68, 0.10);
border: 1px solid rgba(239, 68, 68, 0.30);
}

.status-banner-left{
display: grid;
gap: 4px;
min-width: 0;
}

.status-banner-label{
font-size: 11px;
letter-spacing: 0.10em;
text-transform: uppercase;
color: rgba(255,255,255,0.75);
}

.status-banner-text{
color: white;
font-weight: 600;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}

.btn-icon--on-danger{
border-color: rgba(255,255,255,0.20);
background: rgba(0,0,0,0.20);
color: white;
}

.btn-icon--on-danger:hover{
background: rgba(0,0,0,0.35);
border-color: rgba(255,255,255,0.35);
}



.wall-actions {
display: flex;
gap: 10px;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
margin-top: 10px;
}
.wall-actions-left {
display: inline-flex;
gap: 10px;
align-items: center;
flex-wrap: wrap;
}
.btn-attach {
display: inline-flex;
gap: 8px;
align-items: center;
padding: 10px 12px;
border-radius: 10px;
border: 1px solid var(--border);
background: rgba(255,255,255,0.03);
color: var(--text-muted);
cursor: pointer;
transition: 0.2s;
font-weight: 600;
font-size: 13px;
user-select: none;
}
.btn-attach:hover {
background: rgba(255,255,255,0.07);
color: white;
border-color: rgba(255,255,255,0.2);
}

.image-preview {
margin-top: 10px;
display: none;
}
.image-preview-inner {
position: relative;
display: inline-block;
max-width: 100%;
}
.image-preview img {
max-width: 100%;
max-height: 280px;
border-radius: 14px;
border: 1px solid var(--border);
display: block;
object-fit: cover;
background: #0a0a0c;
}
.btn-preview-remove {
position: absolute;
top: 8px;
right: 8px;
width: 30px;
height: 30px;
border-radius: 10px;
border: 1px solid rgba(255,255,255,0.18);
background: rgba(0,0,0,0.55);
color: white;
cursor: pointer;
display: inline-flex;
align-items: center;
justify-content: center;
transition: 0.2s;
}
.btn-preview-remove:hover { background: rgba(0,0,0,0.75); }

.post-image {
margin-top: 12px;
width: 100%;
max-height: 420px;
object-fit: cover;
border-radius: 14px;
border: 1px solid var(--border);
background: #0a0a0c;
display: block;
}


#wallFeed{
display: grid;
gap: 12px;
padding: 18px 0;
}


.post-card{
background: rgba(255,255,255,0.02);
border: 1px solid var(--border);
border-radius: 14px;
padding: 16px;
box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}


.post-card{
border-bottom: none;
}


.post-image{
width: 100%;
max-height: 520px;
object-fit: cover;
border-radius: 12px;
margin-top: 12px;
border: 1px solid var(--border);
}


.post-text {
white-space: pre-wrap;
word-break: break-word;
}


.input-group {
display: flex;
gap: 10px;
align-items: stretch;
}

.input-group input {
flex: 1 1 auto;
min-width: 0;
}

.input-group .btn-submit {
width: auto;
flex: 0 0 auto;
white-space: nowrap;
padding: 10px 14px;
}

.logout-btn {
background: var(--danger);
padding: 10px 24px;
border-radius: 8px;
font-weight: 600;
font-size: 14px;
}

.site-footer{
margin-top: 34px;
padding: 18px 0;
background: rgba(0,0,0,0.18);
border-top: 1px solid var(--border);
}

.site-footer .container{
padding-top: 0;
padding-bottom: 0;
}

.footer-row{
display:flex;
align-items:flex-start;
justify-content:space-between;
gap: 16px;
}

.footer-left{ min-width: 240px; }

.footer-logo{
font-weight: 900;
letter-spacing: .6px;
font-size: 14px;
line-height: 1.2;
}
.footer-logo span{ color: var(--primary); }

.footer-right{
display:flex;
flex-wrap:wrap;
gap: 8px 14px;
justify-content:flex-end;
text-align:right;
}

.footer-link{
color: rgba(255,255,255,0.82);
text-decoration: none;
font-weight: 800;
font-size: 12.5px;
border-bottom: 1px dashed rgba(168,85,247,0);
transition: .2s;
}
.footer-link:hover{
color: #fff;
border-bottom-color: rgba(168,85,247,.7);
}

.footer-mini{
margin-top: 6px;
color: var(--text-muted);
font-size: 12.5px;
line-height: 1.45;
}

.footer-bottom{
margin-top: 12px;
padding-top: 12px;
border-top: 1px solid var(--border);
display:flex;
align-items:center;
justify-content:space-between;
gap: 12px;
color: rgba(255,255,255,0.72);
font-size: 12.5px;
}

@media (max-width: 900px){
.footer-row{ flex-direction: column; }
.footer-right{ justify-content:flex-start; text-align:left; }
.footer-bottom{ flex-direction: column; align-items:flex-start; }
}


.friends-row {
display:flex;
gap:8px;
flex-wrap:wrap;
}

.friend-head {
width:36px;
height:36px;
border-radius:8px;
background:#333;
display:block;
border: 1px solid var(--border);
overflow:hidden;
text-decoration:none;
}

.friend-head:hover {
border-color: rgba(168,85,247,.7);
}

.friend-head-img {
width:100%;
height:100%;
background-size: cover;
background-position: center;
}

.friend-actions { display:flex; flex-direction:column; gap:10px; }
.friend-actions form { margin:0; }

.wall-layout{
display:flex;
gap:16px;
align-items:flex-start;
}

.wall-sidebar{
width:320px;
flex:0 0 320px;
padding:16px;
position:sticky;
top:128px;
}

.wall-main{
flex:1 1 auto;
min-width:0;
}

@media (max-width: 980px){
.wall-layout{ flex-direction:column; }
.wall-sidebar{ width:100%; flex-basis:auto; position:static; }
}


.sidebar-title{
font-weight:700;
font-size:14px;
margin:0 0 10px 0;
color: var(--text-muted);
text-transform:uppercase;
letter-spacing:.04em;
}

.sidebar-search{
display:flex;
gap:8px;
margin-bottom:14px;
}

.sidebar-search input{
width:100%;
padding:10px 12px;
border-radius:10px;
border:1px solid var(--border);
background: #0f0f12;
color: #fff;
outline:none;
}

.sidebar-search input::placeholder{ color: var(--text-muted); }

.channel-list{
display:flex;
flex-direction:column;
gap:8px;
}

.channel-item{
display:flex;
align-items:center;
justify-content:space-between;
gap:10px;
padding:10px 12px;
border-radius:12px;
border:1px solid var(--border);
background: rgba(255,255,255,0.02);
cursor:pointer;
user-select:none;
}

.channel-item:hover{
background: rgba(255,255,255,0.04);
border-color: rgba(168,85,247,.35);
}

.channel-left{
display:flex;
align-items:center;
gap:10px;
min-width:0;
}

.channel-dot{
width:10px;
height:10px;
border-radius:50%;
background: var(--primary);
flex:0 0 10px;
opacity:.9;
}

.channel-name{
font-weight:700;
font-size:14px;
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;
}

.channel-badge{
font-size:12px;
color: var(--text-muted);
padding:4px 8px;
border-radius:999px;
border:1px solid var(--border);
background: rgba(255,255,255,0.02);
flex:0 0 auto;
}

.channel-item.active{
border-color: rgba(168,85,247,.65);
background: rgba(168,85,247,.10);
}


*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
--bg:          #030308;
--purple:      #a855f7;
--purple-d:    #7c3aed;
--text:        #f1f5f9;
--muted:       #94a3b8;
--card:        rgba(255,255,255,.04);
--border:      rgba(255,255,255,.08);
}

html { scroll-behavior: smooth; }

body {
background: var(--bg);
color: var(--text);
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
overflow-x: hidden;
}


#stars {
position: fixed; inset: 0;
z-index: 0; pointer-events: none;
}


.nebula { position: fixed; border-radius: 50%; pointer-events: none; z-index: 0; filter: blur(90px); }
.nb1 { width:650px; height:650px; top:-200px; left:-150px; background:rgba(139,92,246,.16); animation:nb 22s ease-in-out infinite alternate; }
.nb2 { width:750px; height:750px; bottom:-250px; right:-150px; background:rgba(59,130,246,.11); animation:nb2 28s ease-in-out infinite alternate; }
.nb3 { width:400px; height:400px; top:40%; left:35%; background:rgba(168,85,247,.07); animation:nb 35s ease-in-out infinite alternate-reverse; }
@keyframes nb  { to { transform: translate(50px,40px)  scale(1.1);  } }
@keyframes nb2 { to { transform: translate(-40px,-35px) scale(1.12); } }


.hero {
position: relative;
min-height: 100vh;
display: flex; align-items: center;
padding-bottom: 80px;
overflow: hidden;
}

.hero-glow {
position: absolute;
width: 900px; height: 650px;
top: 50%; left: 50%;
transform: translate(-50%,-55%);
background: radial-gradient(ellipse, rgba(139,92,246,.28) 0%, rgba(59,130,246,.1) 45%, transparent 70%);
pointer-events: none; z-index: 1;
}

.hero-inner { position: relative; z-index: 2; text-align: center; width: 100%; }

.hero-badge {
display: inline-flex; align-items: center; gap: 10px;
padding: 7px 20px;
background: rgba(168,85,247,.1);
border: 1px solid rgba(168,85,247,.25);
border-radius: 100px;
font-size: .82rem; color: #c4b5fd; letter-spacing: .5px;
margin-bottom: 32px;
}
.hero-badge .dot {
width: 7px; height: 7px; background: var(--purple);
border-radius: 50%; box-shadow: 0 0 8px var(--purple);
animation: blink 2s ease-in-out infinite;
}
@keyframes blink { 50% { opacity: .25; } }

.hero h1 {
font-size: clamp(3rem, 7vw, 5.8rem);
font-weight: 900; line-height: 1.08;
letter-spacing: -2px; margin-bottom: 26px;
}
.h1-top {
display: block;
background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,.72) 100%);
-webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.h1-accent {
display: block;
background: linear-gradient(90deg, #a855f7 0%, #818cf8 50%, #a855f7 100%);
background-size: 200%;
-webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
filter: drop-shadow(0 0 40px rgba(168,85,247,.65));
animation: shimmer 4s linear infinite;
}
@keyframes shimmer { from { background-position: 0% 50%; } to { background-position: 200% 50%; } }

.hero-sub {
font-size: 1.15rem; color: var(--muted); line-height: 1.8;
max-width: 500px; margin: 0 auto 48px;
}

.btn-main {
display: inline-flex; align-items: center; gap: 8px;
padding: 16px 40px;
background: linear-gradient(135deg, var(--purple-d), var(--purple));
color: #fff; font-weight: 700; font-size: .98rem;
border-radius: 50px; text-decoration: none;
position: relative; overflow: hidden;
box-shadow: 0 0 32px rgba(168,85,247,.45), 0 4px 20px rgba(168,85,247,.2);
transition: transform .25s, box-shadow .25s;
}
.btn-main::before {
content: '';
position: absolute; top: -50%; left: -80%;
width: 50%; height: 200%;
background: rgba(255,255,255,.18);
transform: skewX(-20deg);
animation: shine 3.5s ease-in-out infinite;
}
@keyframes shine { 0%,100% { left: -80%; } 35% { left: 160%; } }
.btn-main:hover {
transform: translateY(-4px);
box-shadow: 0 0 54px rgba(168,85,247,.65), 0 8px 32px rgba(168,85,247,.3);
}


.hero-wave {
position: absolute; bottom: -2px; left: 0; right: 0;
line-height: 0; z-index: 3; pointer-events: none;
}
.hero-wave svg { display: block; width: 100%; }


.orb {
position: absolute; border-radius: 50%;
pointer-events: none; z-index: 2;
animation: orbf 6s ease-in-out infinite alternate;
}
@keyframes orbf { to { transform: translateY(-22px); } }


main { position: relative; z-index: 1; background: var(--bg); }
.section    { padding: 90px 0; }
.section-sm { padding: 60px 0; }


.s-head { text-align: center; margin-bottom: 52px; }
.s-tag {
display: inline-block; padding: 4px 14px;
background: rgba(168,85,247,.1); border: 1px solid rgba(168,85,247,.22);
border-radius: 100px; font-size: .72rem; font-weight: 600;
color: #c4b5fd; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 16px;
}
.s-head h2 {
font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 800; letter-spacing: -.5px;
background: linear-gradient(135deg, #fff 25%, #c4b5fd 85%);
-webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.s-head p { margin-top: 14px; font-size: .95rem; color: var(--muted); max-width: 480px; margin-inline: auto; line-height: 1.7; }


.stats-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; padding-top: 20px; }
.stat-card {
position: relative;
background: var(--card); border: 1px solid rgba(168,85,247,.18);
border-radius: 26px; padding: 36px 24px; text-align: center;
backdrop-filter: blur(18px); overflow: hidden;
transition: transform .3s, border-color .3s, box-shadow .3s;
}
.stat-card::before {
content: ''; position: absolute; inset: 0;
background: linear-gradient(135deg, rgba(168,85,247,.07) 0%, transparent 55%);
}
.stat-card::after {
content: ''; position: absolute; top: 0; left: 20%; right: 20%; height: 1px;
background: linear-gradient(90deg, transparent, rgba(168,85,247,.5), transparent);
}
.stat-card:hover { transform: translateY(-6px); border-color: rgba(168,85,247,.4); box-shadow: 0 16px 50px rgba(139,92,246,.22); }
.stat-val {
font-size: 2.5rem; font-weight: 900;
background: linear-gradient(135deg, #fff, #c4b5fd);
-webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
margin-bottom: 10px; position: relative;
}
.stat-lbl { font-size: .8rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .9px; }


.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); gap: 18px; }
.fc {
background: var(--card); border: 1px solid var(--border);
border-radius: 22px; padding: 30px 26px; backdrop-filter: blur(10px);
position: relative; overflow: hidden;
transition: transform .35s, border-color .35s, box-shadow .35s;
}
.fc::after {
content: ''; position: absolute; top: 0; left: 10%; right: 10%; height: 1px;
background: linear-gradient(90deg, transparent, rgba(168,85,247,.35), transparent);
opacity: 0; transition: opacity .35s;
}
.fc:hover { transform: translateY(-6px); border-color: rgba(168,85,247,.3); box-shadow: 0 18px 55px rgba(139,92,246,.18); }
.fc:hover::after { opacity: 1; }
.fc-ico {
width: 50px; height: 50px; display: flex; align-items: center; justify-content: center;
font-size: 1.5rem; background: rgba(168,85,247,.1); border: 1px solid rgba(168,85,247,.18);
border-radius: 14px; margin-bottom: 18px;
}
.fc h3 { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.fc p  { font-size: .88rem; color: var(--muted); line-height: 1.7; }


.hl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(308px, 1fr)); gap: 18px; }
.hl-card {
background: var(--card); border: 1px solid var(--border);
border-radius: 24px; padding: 36px 30px; backdrop-filter: blur(10px);
position: relative; overflow: hidden;
transition: transform .35s, border-color .35s, box-shadow .35s;
}
.hl-card:hover { transform: translateY(-5px); border-color: rgba(168,85,247,.3); box-shadow: 0 18px 55px rgba(139,92,246,.18); }
.hl-card::before {
content: ''; position: absolute; bottom: -60px; right: -60px;
width: 220px; height: 220px; border-radius: 50%;
background: radial-gradient(ellipse, rgba(139,92,246,.12) 0%, transparent 70%);
pointer-events: none;
}
.hl-tag {
display: inline-block; padding: 4px 12px;
background: rgba(168,85,247,.1); border: 1px solid rgba(168,85,247,.22);
border-radius: 100px; font-size: .73rem; color: #c4b5fd;
font-weight: 500; letter-spacing: .3px; margin-bottom: 18px;
}
.hl-card h3 { font-size: 1.08rem; font-weight: 700; color: var(--text); margin-bottom: 14px; }
.hl-card p  { font-size: .88rem; color: var(--muted); line-height: 1.75; position: relative; }


.rm-wrap { position: relative; max-width: 900px; margin: 0 auto; }
.rm-line {
position: absolute; left: 50%; top: 20px; bottom: 20px;
width: 1px; transform: translateX(-50%);
background: linear-gradient(to bottom, transparent, rgba(168,85,247,.4) 8%, rgba(168,85,247,.4) 92%, transparent);
}
.rm-row { display: grid; grid-template-columns: 1fr 60px 1fr; align-items: flex-start; margin-bottom: 44px; }
.rm-row:last-child { margin-bottom: 0; }
.rm-l { padding-right: 24px; text-align: right; }
.rm-r { padding-left: 24px; text-align: left; }
.rm-mid { display: flex; flex-direction: column; align-items: center; padding-top: 12px; }
.rm-dot {
width: 48px; height: 48px; border-radius: 50%;
background: rgba(168,85,247,.1); border: 2px solid rgba(168,85,247,.35);
display: flex; align-items: center; justify-content: center;
font-size: 1.1rem; position: relative; z-index: 1;
transition: border-color .3s, box-shadow .3s, background .3s;
}
.rm-row:hover .rm-dot { border-color: var(--purple); background: rgba(168,85,247,.2); box-shadow: 0 0 22px rgba(168,85,247,.5); }
.rm-dot-now { border-color: var(--purple); animation: ripple 2.5s ease-out infinite; }
@keyframes ripple {
0%   { box-shadow: 0 0 0 0   rgba(168,85,247,.55); }
70%  { box-shadow: 0 0 0 14px rgba(168,85,247,0);  }
100% { box-shadow: 0 0 0 0   rgba(168,85,247,0);   }
}
.rm-card {
background: var(--card); border: 1px solid var(--border);
border-radius: 18px; padding: 20px 22px; backdrop-filter: blur(10px);
display: inline-block; width: 100%;
transition: border-color .3s, transform .3s, box-shadow .3s;
position: relative;
}
.rm-row:hover .rm-card { border-color: rgba(168,85,247,.3); transform: translateY(-3px); box-shadow: 0 10px 36px rgba(139,92,246,.16); }
.rm-card-now { border-color: rgba(168,85,247,.28); background: rgba(168,85,247,.05); }


.rm-l .rm-card::after {
content: ''; position: absolute; top: 18px; right: -8px;
width: 14px; height: 14px; background: #0a0a18;
border-top: 1px solid rgba(255,255,255,.08); border-right: 1px solid rgba(255,255,255,.08);
transform: rotate(45deg);
}
.rm-r .rm-card::after {
content: ''; position: absolute; top: 18px; left: -8px;
width: 14px; height: 14px; background: #0a0a18;
border-bottom: 1px solid rgba(255,255,255,.08); border-left: 1px solid rgba(255,255,255,.08);
transform: rotate(45deg);
}
.rm-date { font-size: .7rem; font-weight: 700; color: var(--purple); letter-spacing: .7px; text-transform: uppercase; margin-bottom: 7px; }
.rm-card h3 { font-size: .94rem; font-weight: 700; color: var(--text); margin-bottom: 7px; }
.rm-card p  { font-size: .84rem; color: var(--muted); line-height: 1.65; }


.faq-wrap { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }

details.fq {
background: var(--card); border: 1px solid var(--border);
border-radius: 18px; backdrop-filter: blur(12px); overflow: hidden;
transition: border-color .3s, background .3s, box-shadow .3s;
}
details.fq[open] { border-color: rgba(168,85,247,.32); background: rgba(168,85,247,.04); box-shadow: 0 6px 30px rgba(139,92,246,.14); }
details.fq > summary { list-style: none; }
details.fq > summary::-webkit-details-marker { display: none; }

.fq-q {
display: flex; align-items: center; gap: 14px;
padding: 20px 26px; cursor: pointer; user-select: none;
font-weight: 600; font-size: .95rem; color: var(--text);
transition: color .25s;
}
details.fq[open] .fq-q { color: #c4b5fd; }

.fq-ico {
flex-shrink: 0; width: 30px; height: 30px;
background: rgba(168,85,247,.1); border: 1px solid rgba(168,85,247,.2);
border-radius: 8px; display: flex; align-items: center; justify-content: center;
font-size: .65rem; color: var(--purple); font-weight: 700;
transition: background .3s, border-color .3s;
}
details.fq[open] .fq-ico { background: rgba(168,85,247,.2); border-color: rgba(168,85,247,.42); }

.fq-arr { margin-left: auto; flex-shrink: 0; width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; }
.fq-arr::before {
content: ''; width: 8px; height: 8px;
border-right: 2px solid var(--purple); border-bottom: 2px solid var(--purple);
transform: rotate(45deg) translateY(-2px); transition: transform .32s ease;
}
details.fq[open] .fq-arr::before { transform: rotate(-135deg) translateY(0); }


.fq-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .32s ease; }
details.fq[open] .fq-body { grid-template-rows: 1fr; }
.fq-a { overflow: hidden; font-size: .9rem; color: var(--muted); line-height: 1.75; padding: 0 26px 20px 70px; }


@media (max-width: 700px) {
.stats-grid { grid-template-columns: 1fr; }
.rm-line { left: 22px; }
.rm-row { grid-template-columns: 48px 1fr; grid-template-areas: "mid card"; }
.rm-l { display: none; }
.rm-r { grid-area: card; padding-left: 16px; text-align: left; }
.rm-mid { grid-area: mid; }
.rm-r .rm-card::after { display: none; }
.rm-dot { width: 40px; height: 40px; font-size: .95rem; }
}


:root {
--primary: #a855f7;
--primary-hover: #9333ea;
--bg-card: #18181b;
--bg-input: #09090b;
--border: #27272a;
--text-muted: #a1a1aa;
--income: #22c55e;
}


.bank-container {
display: grid;
grid-template-columns: 350px 1fr;
gap: 30px;
margin-top: 40px;
align-items: start;
margin-bottom: 40px;
}


.left-column {
display: flex;
flex-direction: column;
gap: 20px;
position: sticky;
top: 20px;
}


.book-card {
background: linear-gradient(160deg, #1f1f22 0%, #131315 100%);
border: 1px solid var(--border);
border-radius: 20px;
padding: 30px;
position: relative;
overflow: hidden;
box-shadow: 0 20px 50px rgba(0,0,0,0.5);
min-height: 400px;
display: flex;
flex-direction: column;
justify-content: space-between;
}

.book-header {
display: flex; justify-content: space-between; align-items: start;
margin-bottom: 20px;
}
.book-title {
font-family: serif; font-size: 26px; color: #fff; letter-spacing: 0.5px;
}
.book-seal {
width: 48px; height: 48px;
background: radial-gradient(circle at center, #a855f7 0%, #581c87 100%);
border-radius: 50%;
display: flex; align-items: center; justify-content: center;
font-weight: 800; font-size: 10px; color: white;
box-shadow: 0 0 20px rgba(168, 85, 247, 0.6);
}

.balance-section { margin-top: auto; margin-bottom: 40px; }
.balance-label { color: var(--text-muted); font-size: 13px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.balance-val { font-size: 42px; font-weight: 700; color: #fff; line-height: 1; }
.currency { color: var(--primary); font-size: 28px; vertical-align: top; margin-left: 2px; }

.book-footer {
border-top: 1px solid rgba(255,255,255,0.1);
padding-top: 20px;
display: flex; justify-content: space-between;
font-size: 14px; color: var(--text-muted);
}
.owner-name { color: white; font-weight: 600; }


.btn-history {
display: flex; align-items: center; justify-content: center; gap: 10px;
width: 100%; background: var(--bg-card); border: 1px solid var(--border);
color: var(--text-muted); padding: 15px; border-radius: 12px;
font-size: 14px; font-weight: 600; text-decoration: none; transition: 0.2s;
}
.btn-history:hover { border-color: var(--primary); color: white; background: rgba(168, 85, 247, 0.05); }


.cheque-paper {
background: var(--bg-card);
border: 1px dashed #3f3f46; border-left: 4px solid var(--primary);
border-radius: 8px; padding: 25px;
}
.cheque-head {
display: flex; justify-content: space-between;
border-bottom: 1px solid var(--border); padding-bottom: 15px; margin-bottom: 20px;
}
.form-group { margin-bottom: 15px; }
.form-label { display: block; color: var(--text-muted); margin-bottom: 6px; font-size: 13px; font-weight: 500; }
.form-input {
width: 100%; background: var(--bg-input); border: 1px solid var(--border);
color: white; padding: 12px; border-radius: 6px; font-size: 15px; transition: border-color 0.2s;
}
.form-input:focus { outline: none; border-color: var(--primary); }
.sign-btn {
background: var(--primary); color: white; border: none; padding: 14px;
border-radius: 6px; font-size: 15px; font-weight: 700; cursor: pointer;
width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px;
transition: 0.2s; margin-top: 10px;
}
.sign-btn:hover { background: var(--primary-hover); transform: translateY(-1px); }


.recent-history {
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: 16px;
padding: 25px;
}
.recent-header {
display: flex; justify-content: space-between; align-items: center;
margin-bottom: 20px; padding-bottom: 15px; border-bottom: 1px solid var(--border);
}
.recent-title { font-size: 18px; font-weight: 700; color: white; }
.recent-link { font-size: 13px; color: var(--primary); text-decoration: none; }


.history-table { width: 100%; border-collapse: collapse; }
.history-table th { text-align: left; font-size: 12px; text-transform: uppercase; padding: 10px 0; }
.history-table td { padding: 15px 0; border-bottom: 1px solid #27272a; font-size: 14px; }
.history-table tr:last-child td { border-bottom: none; }

.t-date { color: var(--text-muted); font-family: monospace; width: 100px; }
.t-amount { text-align: right; font-weight: 700; font-family: monospace; font-size: 15px; }
.plus { color: #2ca50f; }
.negative { color: #af2424; }

@media (max-width: 900px) {
.bank-container { grid-template-columns: 1fr; }
.left-column { position: static; }
}
.admin-page{ padding-bottom:16px; }

.admin-grid{
display:grid;
grid-template-columns: 320px minmax(0, 1fr);
gap:16px;
align-items:start;
}
@media (max-width: 980px){
.admin-grid{ grid-template-columns: 1fr; }
}

.admin-sidebar{ padding:16px; min-width:0; }
.admin-main{ min-width:0; }

/* SIDEBAR */
.side-title{
font-weight:700;
font-size:12px;
color:var(--text-muted);
text-transform:uppercase;
letter-spacing:.04em;
margin:0 0 10px 0;
}

.side-nav{
display:flex;
flex-direction:column;
gap:10px;
}

.side-link{
display:flex;
align-items:center;
justify-content:space-between;
gap:10px;
padding:10px 12px;
border-radius:12px;
border:1px solid var(--border);
background: rgba(255,255,255,0.02);
text-decoration:none;
color:inherit;
user-select:none;
}
.side-link:hover{ background: rgba(255,255,255,0.04); border-color: rgba(168,85,247,.35); }
.side-link.active{ border-color: rgba(168,85,247,.65); background: rgba(168,85,247,.10); }

.side-badge{
font-size:12px;
color:var(--text-muted);
padding:4px 8px;
border-radius:999px;
border:1px solid var(--border);
background: rgba(255,255,255,0.02);
flex:0 0 auto;
}

.side-actions{ display:flex; flex-direction:column; gap:10px; margin-top:12px; }
.btn-compact{ width:auto; padding:10px 14px; }

/* HEADER */
.admin-head{ padding:18px; margin-bottom:16px; }
.admin-title{ margin:0; font-size:18px; font-weight:900; line-height:1.2; }
.admin-subtitle{ margin-top:6px; font-size:13px; color:var(--text-muted); }

.pill{
display:inline-block;
padding:4px 10px;
border-radius:999px;
border:1px solid var(--border);
font-size:12px;
color:var(--text-muted);
background: rgba(255,255,255,0.02);
white-space:nowrap;
}
.pill-ok{ color:#22c55e; border-color: rgba(34,197,94,.35); background: rgba(34,197,94,.08); }
.pill-danger{ color: var(--danger); border-color: rgba(239,68,68,.35); background: rgba(239,68,68,.08); }

/* ===== 3 ряда статистики ===== */
.stats-rows{
display:flex;
flex-direction:column;
gap:12px;
margin-bottom:16px;
}

.kpi-row{
display:grid;
grid-template-columns: repeat(4, minmax(0,1fr));
gap:12px;
}
@media (max-width: 980px){ .kpi-row{ grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 560px){ .kpi-row{ grid-template-columns: 1fr; } }

.kpi-card{ padding:14px; }
.kpi-label{ font-size:12px; color:var(--text-muted); margin-bottom:6px; }
.kpi-value{ font-size:22px; font-weight:900; color:#fff; line-height:1.1; }

/* CONTENT GRID */
.content-grid{
display:grid;
grid-template-columns: repeat(2, minmax(0,1fr));
gap:16px;
margin-bottom:16px;
}
@media (max-width: 980px){ .content-grid{ grid-template-columns: 1fr; } }

.span-full{ grid-column: 1 / -1; }

.block{ padding:18px; }
.block-title{ margin:0 0 10px 0; font-weight:900; font-size:15px; }
.block-hint{ margin:0 0 12px 0; color:var(--text-muted); font-size:13px; }

.admin-input{
width:100%;
padding:10px 12px;
border-radius:10px;
border:1px solid var(--border);
background:#0f0f12;
color:#fff;
outline:none;
box-sizing:border-box;
}
.admin-input::placeholder{ color:var(--text-muted); }

.row{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; }

.search-row{
display:flex;
gap:10px;
align-items:center;
flex-wrap:nowrap;
}
@media (max-width: 560px){
.search-row{ flex-wrap:wrap; }
}
.search-row .admin-input{ flex:1 1 auto; min-width: 220px; }
.search-row .btn-compact{ flex:0 0 auto; }

/* ===== Console (fixed size) ===== */
.console-wrap{ display:flex; flex-direction:column; gap:10px; }

.console-meta{
display:flex;
justify-content:space-between;
gap:12px;
flex-wrap:wrap;
color:var(--text-muted);
font-size:12px;
}

.toggle{
display:flex;
align-items:center;
gap:8px;
user-select:none;
color: var(--text-muted);
font-size: 13px;
}
.toggle input{ transform: translateY(1px); }

.console-screen{
height: 360px;
overflow:auto;
border-radius:12px;
border:1px solid var(--border);
background:#0b0b0e;
padding:12px;
box-sizing:border-box;

font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
font-size:12px;
line-height:1.45;
color:#d4d4d8;

white-space: pre;
}

.console-toolbar{
display:flex;
gap:10px;
align-items:center;
flex-wrap:wrap;
}
.console-toolbar .admin-input{ flex:1 1 320px; }

/* EVENTS */
.events-card{ padding: 0 18px; }
.events-head{
padding:18px 0;
border-bottom:1px solid var(--border);
font-weight:900;
font-size:15px;
display:flex;
justify-content:space-between;
gap:12px;
flex-wrap:wrap;
align-items:baseline;
}
.table-wrap{
overflow:auto;
border-radius:12px;
border:1px solid var(--border);
background: rgba(255,255,255,0.02);
}
.table{
width:100%;
border-collapse:separate;
border-spacing:0;
min-width: 760px;
}
.table th, .table td{
padding:12px;
border-bottom:1px solid rgba(255,255,255,0.06);
font-size:13px;
text-align:left;
vertical-align:middle;
white-space:nowrap;
}
.table th{
color:var(--text-muted);
font-weight:700;
font-size:12px;
text-transform:uppercase;
letter-spacing:.03em;
background: rgba(255,255,255,0.02);
}
.table tr:last-child td{ border-bottom:none; }


.admin-layout{ display:flex; gap:16px; align-items:flex-start; }
.admin-sidebar{ width:320px; flex:0 0 320px; padding:16px; position:sticky; top:16px; }
.admin-main{ flex:1 1 auto; min-width:0; }
@media (max-width: 980px){ .admin-layout{flex-direction:column;} .admin-sidebar{width:100%; position:static;} }

.side-title{ font-weight:700; font-size:12px; color:var(--text-muted); text-transform:uppercase; letter-spacing:.04em; margin:0 0 10px 0; }
.side-item{ display:flex; align-items:center; justify-content:space-between; gap:10px; padding:10px 12px; border-radius:12px; border:1px solid var(--border); background: rgba(255,255,255,0.02); text-decoration:none; color:inherit; }
.side-item:hover{ background: rgba(255,255,255,0.04); border-color: rgba(168,85,247,.35); }
.side-item.active{ border-color: rgba(168,85,247,.65); background: rgba(168,85,247,.10); }
.side-badge{ font-size:12px; color: var(--text-muted); padding:4px 8px; border-radius:999px; border:1px solid var(--border); background: rgba(255,255,255,0.02); }

.admin-input{ width:100%; padding:10px 12px; border-radius:10px; border:1px solid var(--border); background:#0f0f12; color:#fff; outline:none; box-sizing:border-box; }
.admin-input::placeholder{ color:var(--text-muted); }

.filters{ display:grid; grid-template-columns: 1fr 1fr; gap:12px; }
.filters-3{ display:grid; grid-template-columns: 1fr 1fr 1fr; gap:12px; margin-top:12px; }
@media (max-width: 980px){ .filters, .filters-3{ grid-template-columns: 1fr; } }

.table{ width:100%; border-collapse:separate; border-spacing:0; overflow:hidden; border-radius:12px; border:1px solid var(--border); background: rgba(255,255,255,0.02); }
.table th, .table td{ padding:12px; border-bottom:1px solid rgba(255,255,255,0.06); font-size:13px; text-align:left; vertical-align:top; }
.table th{ color: var(--text-muted); font-weight:700; font-size:12px; text-transform:uppercase; letter-spacing:.03em; background: rgba(255,255,255,0.02); }
.table tr:last-child td{ border-bottom:none; }

.mono{ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }
.pill{ display:inline-block; padding:4px 10px; border-radius:999px; border:1px solid var(--border); font-size:12px; color: var(--text-muted); background: rgba(255,255,255,0.02); }
.pill-danger{ color: var(--danger); border-color: rgba(239,68,68,.35); background: rgba(239,68,68,.08); }
.pill-ok{ color:#22c55e; border-color: rgba(34,197,94,.35); background: rgba(34,197,94,.08); }
.pill-warn{ color: var(--gold); border-color: rgba(245,158,11,.35); background: rgba(245,158,11,.08); }

.btn-xs{ width:auto; padding:8px 10px; margin:0; }
.row-actions{ display:flex; gap:8px; flex-wrap:wrap; justify-content:flex-end; }
.side-link{
display:flex;
align-items:center;
justify-content:space-between;
gap:10px;
padding:10px 12px;
border-radius:12px;
border:1px solid var(--border);
background: rgba(255,255,255,0.02);
text-decoration:none;
color:inherit;
user-select:none;
}
.side-link:hover{
background: rgba(255,255,255,0.04);
border-color: rgba(168,85,247,.35);
}
.side-link.active{
border-color: rgba(168,85,247,.65);
background: rgba(168,85,247,.10);
}
.side-nav{ display:flex; flex-direction:column; gap:10px; }

    .page{ padding-bottom:16px; }
    .head{ padding:18px; margin-bottom:16px; }
    .title{ margin:0; font-size:18px; font-weight:900; }
    .sub{ margin-top:6px; color:var(--text-muted); font-size:13px; }

    .grid{
      display:grid;
      grid-template-columns: minmax(0,1fr) 320px;
      gap:16px;
      align-items:start;
    }
    @media (max-width: 980px){ .grid{ grid-template-columns: 1fr; } }

    .block{ padding:18px; }
    .k{ color:var(--text-muted); font-size:12px; text-transform:uppercase; letter-spacing:.03em; }
    .v{ font-size:14px; font-weight:800; margin-top:4px; }

    .about{
      white-space:pre-wrap;
      line-height:1.55;
      font-size:13px;
      color:#e5e7eb;
      border:1px solid var(--border);
      border-radius:12px;
      background: rgba(255,255,255,0.02);
      padding:12px;
      margin-top:12px;
    }

    .pill{
      display:inline-block; padding:4px 10px; border-radius:999px;
      border:1px solid var(--border); font-size:12px;
      color:var(--text-muted); background: rgba(255,255,255,0.02);
    }
    .pill-ok{ color:#22c55e; border-color: rgba(34,197,94,.35); background: rgba(34,197,94,.08); }
    .pill-danger{ color: var(--danger); border-color: rgba(239,68,68,.35); background: rgba(239,68,68,.08); }
    .pill-warn{ color:#fbbf24; border-color: rgba(251,191,36,.35); background: rgba(251,191,36,.08); }

    .actions{ display:flex; gap:10px; flex-wrap:wrap; }

        .admin-page{ padding-bottom:16px; }

        .admin-grid{
          display:grid;
          grid-template-columns: 320px minmax(0, 1fr);
          gap:16px;
          align-items:start;
        }
        @media (max-width: 980px){ .admin-grid{ grid-template-columns: 1fr; } }

        .admin-sidebar{ padding:16px; min-width:0; }
        .admin-main{ min-width:0; }

        /* SIDEBAR */
        .side-title{
          font-weight:700;
          font-size:12px;
          color:var(--text-muted);
          text-transform:uppercase;
          letter-spacing:.04em;
          margin:0 0 10px 0;
        }
        .side-nav{ display:flex; flex-direction:column; gap:10px; }
        .side-link{
          display:flex;
          align-items:center;
          justify-content:space-between;
          gap:10px;
          padding:10px 12px;
          border-radius:12px;
          border:1px solid var(--border);
          background: rgba(255,255,255,0.02);
          text-decoration:none;
          color:inherit;
          user-select:none;
        }
        .side-link:hover{
          background: rgba(255,255,255,0.04);
          border-color: rgba(168,85,247,.35);
        }
        .side-link.active{
          border-color: rgba(168,85,247,.65);
          background: rgba(168,85,247,.10);
        }
        .side-badge{
          font-size:12px;
          color:var(--text-muted);
          padding:4px 8px;
          border-radius:999px;
          border:1px solid var(--border);
          background: rgba(255,255,255,0.02);
          flex:0 0 auto;
        }

        /* HEADER */
        .head{ padding:18px; margin-bottom:16px; }
        .title{ margin:0; font-size:18px; font-weight:900; line-height:1.2; }
        .sub{ margin-top:6px; font-size:13px; color:var(--text-muted); }

        .pill{
          display:inline-block;
          padding:4px 10px;
          border-radius:999px;
          border:1px solid var(--border);
          font-size:12px;
          color:var(--text-muted);
          background: rgba(255,255,255,0.02);
          white-space:nowrap;
        }
        .pill-ok{ color:#22c55e; border-color: rgba(34,197,94,.35); background: rgba(34,197,94,.08); }
        .pill-danger{ color: var(--danger); border-color: rgba(239,68,68,.35); background: rgba(239,68,68,.08); }
        .pill-warn{ color:#fbbf24; border-color: rgba(251,191,36,.35); background: rgba(251,191,36,.08); }

        /* FILTER BUTTONS */
        .filters{
          display:flex;
          gap:10px;
          flex-wrap:wrap;
          margin-bottom:16px;
          align-items:center;
        }
        .filter-btn{
          display:inline-flex;
          align-items:center;
          justify-content:center;
          gap:8px;
          padding:10px 14px;
          border-radius:12px;
          border:1px solid var(--border);
          background: rgba(255,255,255,0.02);
          color:#fff;
          text-decoration:none;
          user-select:none;
          font-size:13px;
        }
        .filter-btn:hover{
          background: rgba(255,255,255,0.04);
          border-color: rgba(168,85,247,.35);
        }
        .filter-btn.active{
          border-color: rgba(168,85,247,.65);
          background: rgba(168,85,247,.10);
        }
        .filter-count{
          font-size:12px;
          color:var(--text-muted);
          padding:2px 8px;
          border-radius:999px;
          border:1px solid var(--border);
          background: rgba(255,255,255,0.02);
        }

        /* GRID */
        .apps-kpi-grid{
          display:grid;
          grid-template-columns: repeat(4, minmax(0,1fr));
          gap:12px;
        }
        @media (max-width: 1200px){ .apps-kpi-grid{ grid-template-columns: repeat(3, minmax(0,1fr)); } }
        @media (max-width: 980px){ .apps-kpi-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); } }
        @media (max-width: 560px){ .apps-kpi-grid{ grid-template-columns: 1fr; } }

        .app-mini{ padding:14px; min-width:0; }

        .app-mini-top{
          display:flex;
          justify-content:space-between;
          gap:10px;
          align-items:flex-start;
          margin-bottom:10px;
        }

        .app-mini-user{
          font-weight:900;
          font-size:14px;
          line-height:1.15;
          margin:0;
          overflow:hidden;
          text-overflow:ellipsis;
          white-space:nowrap;
          max-width: 100%;
        }
        .app-mini-id{
          color:var(--text-muted);
          font-size:12px;
          white-space:nowrap;
          flex:0 0 auto;
        }

        .app-mini-meta{
          display:flex;
          gap:8px;
          flex-wrap:wrap;
          margin-bottom:10px;
        }

        .app-mini-about{
          color:#e5e7eb;
          font-size:12.5px;
          line-height:1.45;
          margin:0 0 12px 0;

          display:-webkit-box;
          -webkit-line-clamp: 2;
          -webkit-box-orient: vertical;
          overflow:hidden;
        }

        /* FULL-WIDTH BUTTONS INSIDE CARD */
        .app-actions{
          display:flex;
          flex-direction:column;
          gap:10px;
        }
        .app-actions .btn-profile-action{
          width:100%;
          display:flex;
          justify-content:center;
          box-sizing:border-box;
        }
        .app-actions form{ margin:0; }

        /* Pagination */
        .pager{
          display:flex;
          justify-content:space-between;
          align-items:center;
          gap:12px;
          flex-wrap:wrap;
          margin-top:14px;
        }
        .page-btns{ display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
        .page-btn{
          padding:8px 12px;
          border-radius:10px;
          border:1px solid var(--border);
          background: rgba(255,255,255,0.02);
          color:#fff;
          text-decoration:none;
          font-size:13px;
          user-select:none;
        }
        .page-btn:hover{ border-color: rgba(168,85,247,.35); background: rgba(255,255,255,0.04); }
        .page-btn.active{ border-color: rgba(168,85,247,.65); background: rgba(168,85,247,.10); }
        .page-btn.disabled{ opacity:.45; pointer-events:none; }

        .muted{ color:var(--text-muted); }
            /* Аналогично application-reject/expectation: статус-блок */
            .status-container{display:flex;flex-direction:column;align-items:center;text-align:center;padding:20px 0}
            .status-icon{width:60px;height:60px;background:var(--primary);border-radius:50%;
              display:flex;align-items:center;justify-content:center;margin-bottom:20px;
              box-shadow:0 0 0 0 rgba(168,85,247,.35);animation:pulse404 2s infinite}
            @keyframes pulse404{
              0%{box-shadow:0 0 0 0 rgba(168,85,247,.35)}
              70%{box-shadow:0 0 0 16px rgba(168,85,247,0)}
              100%{box-shadow:0 0 0 0 rgba(168,85,247,0)}
            }
            .info-text{color:#ccc;font-size:14px;line-height:1.6;margin-bottom:18px}
            .path-badge{background:rgba(255,255,255,.05);padding:10px 12px;border-radius:8px;
              border:1px solid rgba(255,255,255,.10);color:#fff;font-size:13px;margin-bottom:18px;
              max-width:100%;word-wrap:break-word}

    /* Аналогично application-reject/expectation: статус-блок */
    .status-container{display:flex;flex-direction:column;align-items:center;text-align:center;padding:20px 0}
    .status-icon{width:60px;height:60px;background:var(--primary);border-radius:50%;
      display:flex;align-items:center;justify-content:center;margin-bottom:20px;
      box-shadow:0 0 0 0 rgba(168,85,247,.35);animation:pulse404 2s infinite}
    @keyframes pulse404{
      0%{box-shadow:0 0 0 0 rgba(168,85,247,.35)}
      70%{box-shadow:0 0 0 16px rgba(168,85,247,0)}
      100%{box-shadow:0 0 0 0 rgba(168,85,247,0)}
    }
    .info-text{color:#ccc;font-size:14px;line-height:1.6;margin-bottom:18px}
    .path-badge{background:rgba(255,255,255,.05);padding:10px 12px;border-radius:8px;
      border:1px solid rgba(255,255,255,.10);color:#fff;font-size:13px;margin-bottom:18px;
      max-width:100%;word-wrap:break-word}