* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #000000;
    color: #e0ffe0;
    min-height: 100vh;
}

/* Фоновое видео */
.background-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    pointer-events: none;
}

.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: -1;
    pointer-events: none;
}

/* Иконки */
.icon-16 { width: 16px; height: 16px; object-fit: contain; }
.icon-18 { width: 18px; height: 18px; object-fit: contain; }
.icon-20 { width: 20px; height: 20px; object-fit: contain; }
.icon-24 { width: 24px; height: 24px; object-fit: contain; }

/* Меню иконки */
.menu-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    margin-right: 14px;
    flex-shrink: 0;
}

/* Аватарка */
.avatar-placeholder {
    width: 216px;
    height: 216px;
    border-radius: 50%;
    background: rgba(34, 34, 34, 0.95);
    border: 4px solid #61DE2A;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: all 0.3s;
}

.avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

/* Аватарка в постах */
.post-avatar-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(34, 34, 34, 0.95);
    border: 2px solid #61DE2A;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.avatar-img-small {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

/* Ползунок как на iPhone */
.toggle-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.toggle-switch input[type="checkbox"] {
    display: none;
}

.toggle-slider {
    width: 44px;
    height: 24px;
    background: #333;
    border-radius: 12px;
    position: relative;
    transition: all 0.3s;
    border: 1px solid #555;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #888;
    top: 1px;
    left: 1px;
    transition: all 0.3s;
}

.toggle-switch input:checked + .toggle-slider {
    background: rgba(97, 222, 42, 0.3);
    border-color: #61DE2A;
}

.toggle-switch input:checked + .toggle-slider::before {
    background: #61DE2A;
    left: 21px;
    box-shadow: 0 0 8px rgba(97, 222, 42, 0.6);
}

.toggle-label {
    color: #61DE2A;
    font-size: 12px;
}

/* Эффект стекла */
.glass-btn {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(97, 222, 42, 0.3);
    box-shadow: 0 8px 32px 0 rgba(97, 222, 42, 0.1);
    transition: all 0.3s ease;
}

.glass-btn:hover {
    background: rgba(97, 222, 42, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(97, 222, 42, 0.6);
    box-shadow: 0 8px 32px 0 rgba(97, 222, 42, 0.2);
    transform: translateY(-2px);
}

.glass-btn:active {
    transform: translateY(0);
    background: rgba(97, 222, 42, 0.25);
}

/* Падающие числа */
.falling-numbers {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.falling-number {
    position: absolute;
    top: -40px;
    font-weight: bold;
    pointer-events: none;
    animation: fallDown linear forwards;
    text-shadow: 0 0 5px currentColor;
}

.falling-number:nth-child(3n+1) { color: #61DE2A; }
.falling-number:nth-child(3n+2) { color: #3BA51A; }
.falling-number:nth-child(3n+3) { color: #8FDF4A; }
.falling-number:nth-child(5n+4) { color: #2E8B14; }
.falling-number:nth-child(7n+5) { color: #B8FF6E; }

@keyframes fallDown {
    0% {
        transform: translateY(-40px) rotate(0deg);
        opacity: 0.2;
    }
    80% {
        opacity: 0.08;
    }
    100% {
        transform: translateY(105vh) rotate(360deg);
        opacity: 0;
    }
}

/* Бургер-меню */
.burger-menu {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.burger-icon {
    width: 30px;
    height: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    position: relative;
    z-index: 1001;
}

.burger-icon span {
    display: block;
    width: 100%;
    height: 3px;
    background: #61DE2A;
    border-radius: 3px;
    transition: all 0.3s;
}

.menu-panel {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 2px solid #61DE2A;
    box-shadow: -5px 0 30px rgba(97, 222, 42, 0.3);
    transition: right 0.3s;
    z-index: 999;
    overflow-y: auto;
}

.menu-panel.active { right: 0; }

.menu-content { padding: 60px 20px 20px; }

.menu-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: #cccccc;
    text-decoration: none;
    font-size: 16px;
    border-radius: 8px;
    margin-bottom: 5px;
    transition: all 0.3s;
}

.menu-item:hover {
    background: rgba(97, 222, 42, 0.1);
    color: #61DE2A;
}

/* Header */
.header {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    padding: 12px 0;
    border-bottom: 2px solid #61DE2A;
    position: relative;
    z-index: 100;
}

.header-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    color: #61DE2A;
    font-size: 28px;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.search-box { flex: 1; max-width: 300px; }

.search-input {
    width: 100%;
    padding: 10px 16px;
    border: 2px solid #61DE2A;
    border-radius: 25px;
    background: rgba(0, 0, 0, 0.5);
    color: #61DE2A;
    font-size: 14px;
    outline: none;
    transition: all 0.3s;
}

.search-input::placeholder { color: #444444; }

.search-input:focus {
    box-shadow: 0 0 15px rgba(97, 222, 42, 0.4);
}

/* Профиль */
.profile-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.profile-header {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    margin-top: 20px;
    border: 2px solid #61DE2A;
    padding: 30px;
}

.profile-main { display: flex; gap: 30px; }

.avatar-section { flex-shrink: 0; }

.avatar-wrapper { position: relative; display: inline-block; }

/* Статусы */
.status-online .avatar-placeholder {
    border-color: #61DE2A;
    box-shadow: 0 0 30px rgba(97, 222, 42, 0.5);
}

.status-inactive .avatar-placeholder {
    border-color: #ffaa00;
    box-shadow: 0 0 30px rgba(255, 170, 0, 0.5);
}

.status-dnd .avatar-placeholder {
    border-color: #ff0000;
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.5);
}

.status-offline .avatar-placeholder {
    border-color: #666666;
    box-shadow: 0 0 30px rgba(102, 102, 102, 0.5);
}

.status-selector-wrapper {
    position: absolute;
    bottom: 5px;
    right: 5px;
    z-index: 10;
}

.status-selector { position: relative; }

.status-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 3px solid #000;
    cursor: pointer;
    transition: all 0.3s;
}

.status-online .status-dot { background: #61DE2A; }
.status-inactive .status-dot { background: #ffaa00; }
.status-dnd .status-dot { background: #ff0000; }
.status-offline .status-dot { background: #666666; }

.status-dropdown {
    display: none;
    position: absolute;
    top: 30px;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border: 2px solid #61DE2A;
    border-radius: 10px;
    padding: 8px;
    min-width: 180px;
    box-shadow: 0 5px 25px rgba(97, 222, 42, 0.3);
}

.status-dropdown.show { display: block; }

.status-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s;
    color: #cccccc;
    font-size: 14px;
}

.status-option:hover { background: rgba(97, 222, 42, 0.1); }

.status-circle {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.status-circle.online { background: #61DE2A; }
.status-circle.inactive { background: #ffaa00; }
.status-circle.dnd { background: #ff0000; }
.status-circle.offline { background: #666666; }

.profile-info { flex: 1; min-width: 0; }

.profile-name {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 10px;
    color: #e0e0e0;
    word-break: break-word;
}

.info-row-simple {
    padding: 6px 10px;
    background: rgba(0,0,0,0.4);
    border-radius: 8px;
    border: 1px solid #333;
    font-size: 13px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.profile-status-block {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 6px;
}

.profile-status {
    color: #61DE2A;
    font-size: 15px;
    padding: 10px 16px;
    background: rgba(97, 222, 42, 0.1);
    border-radius: 12px;
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid #61DE2A;
}

.profile-status:hover {
    background: rgba(97, 222, 42, 0.2);
    box-shadow: 0 0 20px rgba(97, 222, 42, 0.3);
}

.profile-stats {
    display: flex;
    gap: 24px;
    margin-bottom: 15px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.stat-clickable {
    cursor: pointer;
    transition: all 0.2s;
    padding: 8px 14px;
    border-radius: 10px;
    background: rgba(0,0,0,0.3);
    border: 1px solid transparent;
}

.stat-clickable:hover {
    background: rgba(97, 222, 42, 0.1);
    border-color: #61DE2A;
}

.stat-number {
    font-size: 18px;
    font-weight: 700;
    color: #61DE2A;
}

.stat-label {
    font-size: 12px;
    color: #888888;
}

.profile-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.detail-item {
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    border: 1px solid #333333;
}

.detail-label { color: #888888; font-size: 13px; display: block; margin-bottom: 5px; }
.detail-value { color: #aaaaaa; font-size: 16px; }

.profile-actions { display: flex; gap: 12px; margin-top: 25px; }

/* Кнопки */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.btn-primary {
    background: rgba(97, 222, 42, 0.1);
    color: #61DE2A;
    border: 2px solid #61DE2A;
}

.btn-primary:hover {
    background: #61DE2A;
    color: #000;
    box-shadow: 0 0 40px rgba(97, 222, 42, 0.5);
}

.btn-secondary {
    background: rgba(0, 0, 0, 0.7);
    color: #888888;
    border: 1px solid #333333;
}

.btn-secondary:hover {
    background: #333333;
    border-color: #61DE2A;
    color: #61DE2A;
}

/* Фильтры */
.filters-bar {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    border-left: 2px solid #61DE2A;
    border-right: 2px solid #61DE2A;
}

.filter-label { color: #888888; font-size: 13px; margin-right: 5px; }

.filter-btn {
    padding: 6px 14px;
    border: 1px solid #333333;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    color: #888888;
    border-radius: 15px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s;
}

.filter-btn:hover {
    border-color: #61DE2A;
    color: #61DE2A;
    background: rgba(97, 222, 42, 0.1);
}

.filter-btn.active {
    background: rgba(97, 222, 42, 0.15);
    border-color: #61DE2A;
    color: #61DE2A;
}

/* Контент */
.content-grid {
    display: block;
    margin-top: 20px;
}

.main-content {
    width: 100%;
}

.profile-tabs {
    display: flex;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    border: 2px solid #61DE2A;
    border-bottom: none;
}

.tab-btn {
    flex: 1;
    padding: 16px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #888888;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.tab-btn:hover { background: rgba(97, 222, 42, 0.05); color: #61DE2A; }

.tab-btn.active {
    color: #61DE2A;
    background: rgba(97, 222, 42, 0.1);
    border-bottom: 3px solid #61DE2A;
}

.wall {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 0 0 12px 12px;
    padding: 25px;
    border: 2px solid #61DE2A;
    border-top: none;
    min-height: 500px;
}

.post-editor { display: flex; gap: 15px; margin-bottom: 30px; }

.post-input-wrapper { flex: 1; min-width: 0; }

.post-input {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #333333;
    border-radius: 15px;
    font-size: 14px;
    resize: vertical;
    min-height: 70px;
    font-family: inherit;
    outline: none;
    transition: all 0.3s;
    background: rgba(0, 0, 0, 0.5);
    color: #e0e0e0;
}

.post-input::placeholder { color: #444444; }

.post-input:focus {
    border-color: #61DE2A;
    box-shadow: 0 0 20px rgba(97, 222, 42, 0.3);
}

.post-actions-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 10px;
    gap: 12px;
    flex-wrap: wrap;
}

.file-list {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    font-size: 12px;
    color: #61DE2A;
    margin-right: auto;
}

.file-item {
    background: rgba(97, 222, 42, 0.1);
    padding: 4px 8px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.file-item .remove-file {
    cursor: pointer;
    color: #ff4444;
    font-weight: bold;
}

.post-action-icon {
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    padding: 5px;
    opacity: 0.7;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-action-icon:hover { transform: scale(1.2); opacity: 1; }

.post-submit {
    padding: 10px;
    width: 40px;
    height: 40px;
    background: rgba(97, 222, 42, 0.1);
    border: 2px solid #61DE2A;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-submit:hover {
    background: #61DE2A;
    box-shadow: 0 0 25px rgba(97, 222, 42, 0.5);
}

.post {
    padding: 20px 0;
    border-bottom: 1px solid #333333;
}

.post:last-child { border-bottom: none; }

.post-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.post-header-info { display: flex; flex-direction: column; }

.post-author { font-weight: 700; font-size: 15px; color: #e0e0e0; }
.post-date { color: #666666; font-size: 13px; }

.post-text {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 15px;
    color: #cccccc;
    word-break: break-word;
}

.post-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

.stat-view {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #61DE2A;
    font-size: 14px;
    background: rgba(97, 222, 42, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid rgba(97, 222, 42, 0.3);
}

.post-action-btn {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(97, 222, 42, 0.2);
    color: #888888;
    cursor: pointer;
    font-size: 14px;
    padding: 6px 14px;
    border-radius: 20px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-action-btn:hover {
    background: rgba(97, 222, 42, 0.15);
    border-color: #61DE2A;
    color: #61DE2A;
}

.post-action-btn.liked {
    color: #61DE2A;
    background: rgba(97, 222, 42, 0.15);
    border-color: #61DE2A;
    box-shadow: 0 0 10px rgba(97, 222, 42, 0.3);
}

/* Сайдбар */
.sidebar { display: flex; flex-direction: column; gap: 20px; }

.sidebar-card {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 20px;
    border: 2px solid #61DE2A;
}

.sidebar-title {
    font-size: 14px;
    font-weight: 700;
    color: #61DE2A;
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 14px;
    border-bottom: 1px solid #333333;
}

.info-row:last-child { border-bottom: none; }

.info-label { color: #888888; }
.info-value { color: #aaaaaa; }

/* Модальное окно */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active { display: flex; }

.modal {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 15px;
    padding: 30px;
    max-width: 420px;
    width: 90%;
    border: 2px solid #61DE2A;
    box-shadow: 0 8px 32px 0 rgba(97, 222, 42, 0.2);
}

.modal-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 25px;
    color: #61DE2A;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #333333;
    border-radius: 12px;
    font-size: 14px;
    margin-bottom: 20px;
    outline: none;
    font-family: inherit;
    background: rgba(0, 0, 0, 0.5);
    color: #e0e0e0;
}

.modal-input:focus {
    border-color: #61DE2A;
    box-shadow: 0 0 20px rgba(97, 222, 42, 0.3);
}

.modal-actions { display: flex; gap: 12px; justify-content: flex-end; }

/* Комментарии */
.comments-list {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 15px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    border: 1px solid #333;
}

.comment-item {
    padding: 10px;
    margin-bottom: 8px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
    border: 1px solid #333;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}

.comment-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(34, 34, 34, 0.95);
    border: 1px solid #61DE2A;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.comment-author { font-weight: 600; font-size: 13px; color: #e0e0e0; }
.comment-date { font-size: 11px; color: #666; }
.comment-text { font-size: 14px; color: #ccc; margin-left: 32px; }

.comment-input-wrapper { display: flex; gap: 10px; }
.comment-input-wrapper .modal-input { margin-bottom: 0; flex: 1; }

/* Файлы в постах */
.post-files {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.post-file-image {
    max-width: 200px;
    max-height: 200px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid #333;
    cursor: pointer;
}

.post-file-video {
    max-width: 300px;
    max-height: 200px;
    border-radius: 10px;
    border: 1px solid #333;
}

.post-file-other {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: rgba(97, 222, 42, 0.1);
    border: 1px solid #61DE2A;
    border-radius: 8px;
    color: #61DE2A;
    font-size: 13px;
}

/* Адаптив */
@media (max-width: 768px) {
    .content-grid { display: block; }
    .profile-main { flex-direction: column; align-items: center; text-align: center; }
    .avatar-placeholder { width: 168px; height: 168px; }
    .post-avatar-placeholder { width: 40px; height: 40px; }
    .profile-details { grid-template-columns: 1fr 1fr; gap: 10px; }
    .profile-actions { justify-content: center; }
    .menu-panel { width: 280px; right: -280px; }
    .filters-bar { padding: 10px; gap: 5px; }
    .filter-btn { padding: 4px 10px; font-size: 11px; }
    .post-editor { gap: 10px; }
    .post-actions-bar { gap: 8px; }
    .header-inner { gap: 10px; }
    .logo { font-size: 22px; }
    .profile-name { font-size: 24px; }
    .btn { padding: 10px 18px; font-size: 13px; }
    .post-actions { gap: 8px; }
    .stat-view { padding: 4px 10px; font-size: 12px; }
    .post-action-btn { padding: 4px 10px; font-size: 12px; }
}

@media (max-width: 480px) {
    .profile-details { grid-template-columns: 1fr; }
    .profile-header { padding: 20px; }
    .wall { padding: 15px; }
    .filters-bar { flex-direction: column; align-items: flex-start; }
    .post-actions-bar { flex-direction: row; flex-wrap: wrap; }
    .file-list { margin-right: 0; width: 100%; order: 1; }
    .post-action-icon { order: 2; }
    .toggle-switch { order: 3; }
    .post-submit { order: 4; }
    .post-actions { flex-wrap: wrap; }
}