/* Гамбургер */
.menu-toggle { 
    display: flex; 
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 36px; 
    height: 36px; 
    margin-left: auto; /* Прижимает меню к правому краю */
    cursor: pointer;
    position: relative;
    z-index: 1002;
    flex-shrink: 0; /* Запрещает сжиматься */
    -webkit-tap-highlight-color: transparent;
}

.bar { 
    display: block;
    width: 22px; 
    height: 3px; /* Чуть мощнее для четкости */
    background-color: #2c2c2c; /* Темно-серый, как в ВК */
    border-radius: 3px;
    position: absolute;
    left: 7px; /* Центрирование внутри 36px */
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55); /* Пружинистая анимация */
}

/* Расстановка полосок */
.bar:nth-child(1) { top: 9px; }
.bar:nth-child(2) { top: 16.5px; }
.bar:nth-child(3) { top: 24px; }

/* Активное состояние (Крестик) */
.menu-toggle.active .bar:nth-child(1) { 
    top: 16.5px; /* Едет в центр */
    transform: rotate(45deg); 
}

.menu-toggle.active .bar:nth-child(2) { 
    opacity: 0; 
    transform: scaleX(0); 
}

.menu-toggle.active .bar:nth-child(3) { 
    top: 16.5px; /* Едет в центр */
    transform: rotate(-45deg); 
}

/* Шапка */
.header-inner { padding: 0px 0px; gap: 8px; }.logo { font-size: 20px; }
.nav-actions { gap: 6px; }
.action-btn { width: 32px; height: 32px; font-size: 16px; }
/* Мобильное меню */
.mobile-menu a { padding: 14px; font-size: 14px; }
/* Футер */
.vk-footer { padding: 16px 12px; }
.footer-inner { flex-direction: column; text-align: center; }
.footer-links { flex-direction: column; gap: 8px; }
.footer-copy { font-size: 11px; margin-top: 12px; }
/* Профиль */
.profile-content { display: block; gap: 20px; } /* Исправлено с flow */
.profile-header { margin-bottom: 1px; border-radius: 10px; overflow: hidden; box-shadow: -12px 1px 20px 12px rgb(84 64 131 / 80%); }
.profile-cover { height: 130px; background: linear-gradient(135deg, #eeeff3 0%, #ceb6e7 100%); }
.profile-cover img { width: 101%; height: 237%; object-fit: cover; mix-blend-mode: soft-light; backdrop-filter: blur(82px) brightness(0.9); }
.profile-sidebar {border-radius: 10px; padding: 1px 1px 0px 3px; height: fit-content; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15); }
.profile-avatar img {    width:150px;   height: 150px;    border-radius: 59%;    border: 1px solid #000000;  box-shadow: 0px 0px 20px 3px rgb(0 0 0 / 88%);   margin-top: -80px;   object-fit: cover;  }
.profile-details{position: absolute; left:157px; font-size: 10px; bottom: 0%;}
.online-status { bottom: 100px; right: 20px; width: 10px; height: 10px; background: #4caf50; border: 1px solid white; }
.profile-stats { display: flex;justify-content: space-around;margin-bottom: 10px;padding-bottom: 0px;border-bottom: 1px solid #a453bf;}
.stat-number {   display: block;   font-size: 20px;  font-weight: bold;  color: #594d99; }
/* Контент и посты */
.content { padding: 0px; }
.post { border: 1px solid #a059bb70; border-radius: 10px;padding: 0px; margin-bottom: 0px; transition: transform 0.2s, box-shadow 0.2s;}
.post-media { margin: 0px -1px;}
.post-photo{margin: 0px 0px; width: 100%;}
.post:hover { transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.comments-section { margin-top: 2px; padding-top: 2px; border-top: 3px solid #7889a3; }
.btn, #btnn { padding: 10px 9px; background: #49199cce;    color: #fff5f5;   font-size: 13px;  border-radius: 8px; }
#btnn {padding: 11px 36px;   background: #49199cce;   color: #fff5f5;  font-size: 15px;   border-radius: 4px;}
.svg { padding: 10px 9px; background: #bcb8c200;    color: #000000;   font-size: 13px;  border-radius: 8px; }
.btn .svg { padding: 10px 9px; background: #bcb8c200;    color: #000000;   font-size: 13px;  border-radius: 8px; }
.btn:hover, #btnn:hover { transform: translateY(-1px); box-shadow: 0 3px 8px rgba(92,67,123,0.3); }
/* Слайдер (адаптив) */
.slideshow-container { max-width: 100%; margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: -5px 4px 20px 3px rgb(65 0 169 / 65%); background: var(--bg-white); }
.vk-footer { padding: 0; }
.messages-page { padding: 0 8px; margin: 10px auto; }
.messages-page h1 { font-size: 20px; margin-bottom: 12px; }
.dialog-item { padding: 10px 12px; }
.dialog-avatar { width: 44px; height: 44px; }
.dialog-info h3 { font-size: 14px; }
.dialog-preview { font-size: 12px; }
.unread-badge { font-size: 9px; padding: 2px 4px; }
.conversation-page { height: calc(100vh - 65px); padding: 0px 0px; margin: 0px 0px; }
.conversation-header { padding: 0px 0px; border-radius: 0px 0px 0 0; margin: 0px 0px; }
.partner-avatar { width: 38px; height: 38px; }
.partner-info h2 { font-size: 15px; }
.messages-container { background: url(../uploads/images/fon.jpg); padding: 1px; border-radius: 8px; }
.message { max-width: 92%; }
.message-content { padding: 8px 12px; font-size: 13px; border-radius: 14px; }.message-avatar { width: 28px; height: 28px; }
.emoji-panel { grid-template-columns: repeat(6, 1fr); max-height: 150px; }
.emoji-btn { font-size: 16px; }
.message-input-container { padding: 0px 0px; border-radius: 0 0 0px 0px; }
#message-form { gap: 0px; }
.emoji-toggle, .file-upload-btn { width: 32px; height: 32px; font-size: 16px; }
#message-input { padding: 16px 10px; font-size: 14px; }
.send-btn { width: 34px; height: 34px; font-size: 14px; }
.search { display: none; }
.albums-grid {  grid-template-columns: repeat(2, 1fr); }
.photos-grid {  grid-template-columns: repeat(3, 1fr); gap: 6px; }
.vk-volume {   display: none;  position: relative;  width: 90px; height: 4px; cursor: pointer;}
.vk-player-controls{margin: 2px -80px;  padding: 0px 0px;}
.message-input-container { margin: 12px 6px;}
/* ========== АДМИН-ПАНЕЛЬ НА ТЕЛЕФОНАХ ========== */
.admin-page {
    padding: 12px 8px 80px;
    max-width: 100%;
}

.admin-page h1 {
    font-size: 20px;
    margin-bottom: 12px;
    text-align: center;
}

/* Обёртка для горизонтального скролла */
.admin-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 16px;
    border-radius: 12px;
    border: 1px solid var(--vk-border);
}

.admin-table {
    width: 100%;
    min-width: 700px; /* чтобы не схлопывалось */
    border-collapse: collapse;
    background: var(--vk-card);
    font-size: 13px;
}

.admin-table th,
.admin-table td {
    padding: 10px 8px;
    white-space: nowrap;
    text-align: left;
    border-bottom: 1px solid var(--vk-border);
}
.admin-table th {
    background: var(--vk-hover);
    font-weight: 600;
    position: sticky;
    top: 0;
}

.admin-btn {
    display: inline-block;
    padding: 8px 12px;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    margin-right: 4px;
}

.ban-btn {
    background: #f44336;
    color: #fff;
}

.ban-btn.unban {
    background: #4caf50;
}

.role-btn {
    background: #0077FF;
    color: #fff;
}

.admin-back-link {
    display: inline-block;
    margin-top: 10px;
    color: var(--vk-text-secondary);
    text-decoration: none;
    font-size: 14px;
}

/* ========== ГЛАВНАЯ АДМИНКИ (dashboard) ========== */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 16px 0;
}
.stat-card {
    background: var(--vk-card);
    border-radius: 12px;
    padding: 14px;
    text-align: center;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.stat-card b {
    display: block;
    font-size: 22px;
    margin-top: 4px;
}

.admin-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.admin-menu a {
    flex: 1 1 auto;
    text-align: center;
    padding: 12px;
    background: var(--vk-primary);
    color: #fff;
    border-radius: 10px;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s;
}

.admin-menu a:hover {
    background: var(--app-primary-hover);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}
.admin-actions {
    display: flex;
    gap: 8px;
}.admin-search {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid var(--vk-border);
    background: var(--vk-card);
    color: var(--vk-text);
    width: 200px;
}
.export-btn {
    background: #28a745;
    color: #fff;
}
.delete-btn {
    background: #dc3545;
    color: #fff;
}
.pass-btn {
    background: #ffc107;
    color: #000;
}