:root { --bg-dark: #07090d; --sidebar-bg: #0d111a; --card-bg: #121826; --accent: #6366f1; --accent-hover: #4f46e5; --text-main: #ffffff; --text-dim: #8e99af; --border: rgba(255, 255, 255, 0.08); --glass: rgba(255, 255, 255, 0.03); --error: #fb7185; --success: #10b981; }
* { box-sizing: border-box; }
body { margin: 0; font-family: 'Plus Jakarta Sans', 'Inter', sans-serif; background-color: var(--bg-dark); color: var(--text-main); overflow-x: hidden; }
.auth-page { height: 100vh; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at center, #1e222d 0%, #0b0e14 100%); }
.auth-card { width: 100%; max-width: 380px; padding: 40px; background: var(--card-bg); border-radius: 28px; border: 1px solid var(--border); box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); text-align: center; }
input { width: 100%; padding: 14px 18px; margin-bottom: 12px; border-radius: 14px; border: 1px solid var(--border); background: #1c212c; color: #fff; outline: none; transition: 0.3s; }
input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1); }
input[readonly] { background: rgba(255,255,255,0.02); color: var(--text-dim); cursor: not-allowed; }
button, .btn-primary { width: 100%; padding: 16px; border-radius: 14px; border: none; background: var(--accent); color: #fff; font-weight: 700; cursor: pointer; transition: 0.3s; }
button:hover { background: var(--accent-hover); transform: translateY(-2px); }
.layout { display: flex; min-height: 100vh; }
.sidebar { width: 280px; background: var(--sidebar-bg); border-right: 1px solid var(--border); display: flex; flex-direction: column; position: fixed; height: 100vh; z-index: 100; }
.main-content { margin-left: 280px; flex-grow: 1; padding: 40px; }
.sidebar-header { padding: 30px; font-size: 20px; font-weight: 800; }
.logo span { color: var(--accent); }
.sidebar-nav { flex-grow: 1; padding: 0 15px; }
.nav-group { font-size: 11px; text-transform: uppercase; color: var(--text-dim); letter-spacing: 1px; margin: 25px 0 10px 15px; }
.nav-link { display: flex; align-items: center; padding: 12px 15px; color: var(--text-dim); text-decoration: none; border-radius: 12px; transition: 0.3s; margin-bottom: 5px; }
.nav-link i { margin-right: 12px; font-style: normal; }
.nav-link:hover, .nav-link.active { background: var(--accent); color: white; }
.sidebar-footer { padding: 20px; border-top: 1px solid var(--border); }
.user-info { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.avatar { width: 40px; height: 40px; background: var(--accent); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-weight: bold; }
.top-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.page-title h1 { margin: 0; font-size: 24px; }
.page-title p { margin: 5px 0 0; color: var(--text-dim); font-size: 14px; }
.profile-trigger { background:#161b26; border:1px solid var(--border); padding:10px 18px; border-radius:12px; cursor:pointer; }
.dropdown { position: relative; }
.dropdown-content { visibility: hidden; opacity: 0; position: absolute; right: 0; top: calc(100% + 10px); background: #121826; border: 1px solid var(--border); border-radius: 16px; min-width: 220px; box-shadow: 0 20px 40px rgba(0,0,0,0.6); z-index: 1000; transform: translateY(10px); transition: 0.2s cubic-bezier(0.4,0,0.2,1); }
.dropdown-content::before { content:''; position:absolute; top:-15px; left:0; width:100%; height:20px; }
.dropdown:hover .dropdown-content { visibility: visible; opacity: 1; transform: translateY(0); }
.dropdown-content a { color: #cbd5e1; padding: 12px 20px; text-decoration: none; display: flex; align-items: center; font-size: 14px; }
.dropdown-content a:hover { background: rgba(99,102,241,0.1); color: var(--accent); }
.dropdown-content .logout { color: var(--error); }
.data-card { background: var(--card-bg); border-radius: 20px; border: 1px solid var(--border); overflow: hidden; }
.custom-table { width: 100%; border-collapse: collapse; }
.custom-table th { background: rgba(255,255,255,0.02); text-align: left; padding: 20px; font-size: 12px; color: var(--text-dim); text-transform: uppercase; }
.custom-table td { padding: 20px; border-bottom: 1px solid var(--border); }
.vk-id-link { font-family: monospace; color: var(--accent); font-weight: 600; }
.nick-cell { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.nickname { font-weight: 600; font-size: 15px; color: var(--text-main); }
.lvl-badge { color: var(--text-dim); font-size: 12px; }
.profile-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 30px; align-items: start; }
.input-field { margin-bottom: 20px; }
.input-field label { display: block; font-size: 11px; text-transform: uppercase; color: var(--text-dim); margin-bottom: 8px; letter-spacing: 0.5px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.section-title { font-size: 16px; font-weight: 700; margin-bottom: 25px; padding-bottom: 15px; border-bottom: 1px solid var(--border); display: block; color: var(--accent); }
.card-padding { padding: 30px; }
#toast-container { position: fixed; top: 20px; right: 20px; z-index: 9999; }
.toast { background: #1c212c; color: #fff; padding: 16px 24px; border-radius: 16px; border: 1px solid var(--border); box-shadow: 0 10px 30px rgba(0,0,0,0.5); margin-bottom: 10px; display: flex; align-items: center; gap: 12px; min-width: 250px; animation: slideIn 0.3s ease forwards; position: relative; overflow: hidden; }
.toast::after { content:''; position:absolute; bottom:0; left:0; height:3px; background:var(--accent); width:100%; animation:progress 3s linear forwards; }
.toast.error::after { background: var(--error); }
.toast.success::after { background: var(--success); }
@keyframes slideIn { from { transform:translateX(100%); opacity:0; } to { transform:translateX(0); opacity:1; } }
@keyframes progress { from { width:100%; } to { width:0%; } }