* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #000000;
    min-height: 100vh;
    color: #fff;
    position: relative;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Навигация */
.navbar {
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    padding: 20px 30px;
    border-radius: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 40px rgba(255, 0, 100, 0.3);
    margin-bottom: 30px;
    border: 2px solid rgba(255, 0, 100, 0.3);
}

.nav-brand h1 {
    background: linear-gradient(135deg, #ff0066 0%, #ff6b9d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 32px;
    font-weight: 800;
    text-shadow: 0 0 30px rgba(255, 0, 100, 0.5);
}

.nav-menu {
    display: flex;
    gap: 15px;
    align-items: center;
}

.user-display {
    color: #ff0066;
    font-weight: 700;
    font-size: 16px;
    text-shadow: 0 0 10px rgba(255, 0, 100, 0.5);
}

.header-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-chat {
    background: linear-gradient(135deg, #ff0066 0%, #cc0052 100%);
    color: white;
    font-weight: 700;
    position: relative;
}

.btn-chat:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 25px rgba(255, 0, 100, 0.6);
}

.unread-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #00ff88;
    color: #000;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.8);
}

/* Кнопки */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, #ff0066 0%, #cc0052 100%);
    color: white;
    font-weight: 700;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 25px rgba(255, 0, 100, 0.6);
    background: linear-gradient(135deg, #ff3385 0%, #ff0066 100%);
}

.btn-request {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    font-weight: 700;
}

.btn-request:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 25px rgba(139, 92, 246, 0.6);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-admin {
    background: #ff6b6b;
    color: white;
}

.btn-admin:hover {
    background: #ee5a52;
}

.btn-add {
    background: linear-gradient(135deg, #00ff88 0%, #00cc6e 100%);
    color: #000;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.btn-add:hover {
    background: linear-gradient(135deg, #33ffaa 0%, #00ff88 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 25px rgba(0, 255, 136, 0.6);
}

.btn-danger {
    background: #ff6b6b;
    color: white;
}

.btn-danger:hover {
    background: #ee5a52;
}

.plus-icon {
    font-size: 20px;
    font-weight: bold;
}

/* Экран авторизации */
.auth-screen {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
}

.auth-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    padding: 40px;
    border-radius: 25px;
    box-shadow: 0 20px 60px rgba(255, 0, 100, 0.5);
    width: 100%;
    max-width: 400px;
    border: 2px solid rgba(255, 0, 100, 0.3);
}

.auth-card h2 {
    background: linear-gradient(135deg, #ff0066 0%, #ff6b9d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 30px;
    text-align: center;
    font-size: 36px;
    font-weight: 800;
}

.auth-card input {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border: 2px solid rgba(255, 0, 100, 0.3);
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.auth-card input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.auth-card input:focus {
    outline: none;
    border-color: #ff0066;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(255, 0, 100, 0.3);
}

.auth-card button {
    width: 100%;
    margin-top: 10px;
}

.auth-switch {
    text-align: center;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.7);
}

.auth-switch a {
    color: #ff0066;
    text-decoration: none;
    font-weight: 700;
}

.auth-switch a:hover {
    text-decoration: underline;
    color: #ff3385;
}

/* Админ панель */
.admin-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.admin-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    padding: 40px;
    border-radius: 25px;
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    overflow-y: auto;
    border: 2px solid rgba(255, 0, 100, 0.3);
    box-shadow: 0 20px 60px rgba(255, 0, 100, 0.5);
}

.admin-card h2 {
    background: linear-gradient(135deg, #ff0066 0%, #ff6b9d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 30px;
    font-size: 32px;
    font-weight: 800;
}

.admin-section {
    margin-bottom: 30px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 0, 100, 0.2);
}

.admin-section h3 {
    color: #ff0066;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 700;
}

.admin-section input {
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    border: 2px solid rgba(255, 0, 100, 0.3);
    border-radius: 10px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.admin-section input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.admin-section input:focus {
    outline: none;
    border-color: #ff0066;
    box-shadow: 0 0 15px rgba(255, 0, 100, 0.3);
}

.sellers-list, .requests-list {
    margin-top: 15px;
}

.seller-item, .request-item {
    background: rgba(255, 255, 255, 0.08);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(255, 0, 100, 0.2);
    transition: all 0.3s ease;
}

.seller-item:hover, .request-item:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateX(5px);
}

.seller-item span, .request-item span {
    color: white;
    font-weight: 600;
}

.seller-item button, .request-item button {
    padding: 8px 16px;
    font-size: 13px;
    margin-left: 8px;
}

.request-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
}

.request-info {
    width: 100%;
}

.request-user {
    color: white;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.request-date {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.request-reason {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    background: rgba(255, 0, 100, 0.1);
    padding: 8px 12px;
    border-radius: 8px;
    border-left: 3px solid #ff0066;
    margin-top: 8px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.4;
}

.request-actions {
    display: flex;
    gap: 10px;
    width: 100%;
    justify-content: flex-end;
}

/* Магазин */
.shop-screen {
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    padding: 35px;
    border-radius: 25px;
    box-shadow: 0 20px 60px rgba(255, 0, 100, 0.3);
    border: 2px solid rgba(255, 0, 100, 0.3);
}

.shop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
}

.shop-header h2 {
    background: linear-gradient(135deg, #ff0066 0%, #ff6b9d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 36px;
    font-weight: 800;
}

/* Сетка товаров */
.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.item-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(255, 0, 100, 0.4);
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    border: 2px solid rgba(255, 0, 100, 0.3);
}

.item-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 50px rgba(255, 0, 100, 0.6);
    border-color: rgba(255, 0, 100, 0.8);
}

.item-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: #000000;
    border-bottom: 2px solid rgba(255, 0, 100, 0.3);
}

.item-content {
    padding: 25px;
}

.item-title {
    font-size: 22px;
    font-weight: 800;
    color: #ff0066;
    margin-bottom: 12px;
    text-shadow: 0 0 10px rgba(255, 0, 100, 0.5);
}

.item-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin-bottom: 18px;
    line-height: 1.6;
}

.item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.item-price {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, #ff0066 0%, #ff6b9d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.item-price span {
    font-size: 16px;
    color: rgba(255, 0, 100, 0.7);
}

.item-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-available {
    background: linear-gradient(135deg, #00ff88 0%, #00cc6e 100%);
    color: #000;
    font-weight: 700;
}

.status-unavailable {
    background: linear-gradient(135deg, #ff0066 0%, #cc0052 100%);
    color: white;
    font-weight: 700;
}

.item-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.item-actions button {
    flex: 1;
    padding: 10px;
    font-size: 13px;
}

/* Модальные окна */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    margin: 5% auto;
    padding: 40px;
    border-radius: 25px;
    width: 90%;
    max-width: 550px;
    position: relative;
    animation: slideIn 0.3s ease;
    border: 2px solid rgba(255, 0, 100, 0.3);
    box-shadow: 0 20px 60px rgba(255, 0, 100, 0.5);
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    color: rgba(255, 255, 255, 0.6);
    float: right;
    font-size: 36px;
    font-weight: bold;
    cursor: pointer;
    line-height: 20px;
    transition: all 0.3s ease;
}

.close:hover {
    color: #ff0066;
    transform: rotate(90deg);
}

.modal-content h2 {
    background: linear-gradient(135deg, #ff0066 0%, #ff6b9d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 30px;
    font-size: 28px;
    font-weight: 800;
}

.modal-content input,
.modal-content textarea {
    width: 100%;
    padding: 14px;
    margin-bottom: 18px;
    border: 2px solid rgba(255, 0, 100, 0.3);
    border-radius: 12px;
    font-size: 14px;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    transition: all 0.3s ease;
}

.modal-content input::placeholder,
.modal-content textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.modal-content input:focus,
.modal-content textarea:focus {
    outline: none;
    border-color: #ff0066;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(255, 0, 100, 0.3);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    cursor: pointer;
    color: white;
    font-weight: 600;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
    cursor: pointer;
}

/* Загрузка изображений */
.image-upload-section {
    margin-bottom: 20px;
}

.upload-label {
    display: block;
    margin-bottom: 15px;
}

.upload-button {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    padding: 14px 20px;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s ease;
    border: 2px solid rgba(139, 92, 246, 0.3);
}

.upload-button:hover {
    background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 25px rgba(139, 92, 246, 0.6);
}

.image-preview {
    margin: 15px 0;
    min-height: 100px;
    border-radius: 12px;
    overflow: hidden;
    display: none;
    border: 2px solid rgba(255, 0, 100, 0.3);
}

.image-preview.active {
    display: block;
}

.image-preview img {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
    background: rgba(0, 0, 0, 0.3);
}

/* Чат */
.chat-modal-overlay {
    background-color: rgba(0, 0, 0, 0.85);
}

.chat-modal .modal-content {
    max-width: 700px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}

.chat-header {
    padding: 25px;
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    border-bottom: 2px solid rgba(255, 0, 100, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-item-info {
    display: flex;
    gap: 15px;
    align-items: center;
}

.chat-item-image {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid rgba(255, 0, 100, 0.5);
}

.chat-item-details h3 {
    color: #ff0066;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 5px;
}

.chat-item-details p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    font-weight: 600;
}

.chat-participants {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 25px;
    background: rgba(0, 0, 0, 0.2);
    max-height: 450px;
}

.chat-message {
    margin-bottom: 18px;
    padding: 14px 18px;
    border-radius: 16px;
    max-width: 75%;
    word-wrap: break-word;
    animation: messageSlide 0.3s ease;
}

@keyframes messageSlide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-message.sent {
    background: linear-gradient(135deg, #ff0066 0%, #cc0052 100%);
    color: white;
    margin-left: auto;
    border-bottom-right-radius: 4px;
}

.chat-message.received {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 0, 100, 0.2);
    border-bottom-left-radius: 4px;
}

.chat-message-header {
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 6px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.chat-message.sent .chat-message-header {
    color: rgba(255, 255, 255, 0.7);
}

.chat-message.received .chat-message-header {
    color: #ff0066;
}

.chat-message-text {
    font-size: 15px;
    line-height: 1.5;
    font-weight: 500;
}

.chat-input {
    display: flex;
    gap: 12px;
    padding: 25px;
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    border-top: 2px solid rgba(255, 0, 100, 0.3);
}

.chat-input input {
    flex: 1;
    padding: 14px 18px;
    border: 2px solid rgba(255, 0, 100, 0.3);
    border-radius: 12px;
    font-size: 15px;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    transition: all 0.3s ease;
}

.chat-input input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.chat-input input:focus {
    outline: none;
    border-color: #ff0066;
    box-shadow: 0 0 20px rgba(255, 0, 100, 0.3);
}

.chat-input button {
    padding: 14px 24px;
    font-size: 20px;
}

.chat-input button {
    padding: 14px 24px;
    font-size: 20px;
}

/* Боковая панель чатов */
.chat-sidebar {
    position: fixed;
    left: -400px;
    top: 0;
    width: 380px;
    height: 100vh;
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    box-shadow: 5px 0 30px rgba(255, 0, 100, 0.5);
    z-index: 2000;
    transition: left 0.4s ease;
    border-right: 2px solid rgba(255, 0, 100, 0.5);
    overflow-y: auto;
}

.chat-sidebar.active {
    left: 0;
}

.chat-sidebar-header {
    padding: 25px;
    background: linear-gradient(135deg, #ff0066 0%, #cc0052 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-sidebar-header h3 {
    color: white;
    font-size: 20px;
    font-weight: 800;
    margin: 0;
}

.close-sidebar {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 24px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-sidebar:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.chat-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1999;
    display: none;
    backdrop-filter: blur(5px);
}

.chat-sidebar-overlay.active {
    display: block;
}

.chats-list {
    padding: 15px;
}

.chat-item {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 0, 100, 0.3);
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.chat-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 0, 100, 0.6);
    transform: translateX(5px);
}

.chat-item.unread {
    border-color: #00ff88;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

.chat-item-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.chat-item-avatar {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid rgba(255, 0, 100, 0.5);
}

.chat-item-info {
    flex: 1;
}

.chat-item-title {
    color: #ff0066;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 3px;
}

.chat-item-user {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
}

.chat-item-preview {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.chat-item-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #00ff88;
    color: #000;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.8);
}

.no-chats {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.5);
}

.no-chats-icon {
    font-size: 60px;
    margin-bottom: 15px;
    opacity: 0.3;
}

/* Кастомный скроллбар */
.chat-messages::-webkit-scrollbar,
.admin-card::-webkit-scrollbar,
.chat-sidebar::-webkit-scrollbar {
    width: 8px;
}

.chat-messages::-webkit-scrollbar-track,
.admin-card::-webkit-scrollbar-track,
.chat-sidebar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.chat-messages::-webkit-scrollbar-thumb,
.admin-card::-webkit-scrollbar-thumb,
.chat-sidebar::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #ff0066 0%, #cc0052 100%);
    border-radius: 10px;
}

.chat-messages::-webkit-scrollbar-thumb:hover,
.admin-card::-webkit-scrollbar-thumb:hover,
.chat-sidebar::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #ff3385 0%, #ff0066 100%);
}

/* Адаптивность */
@media (max-width: 768px) {
    .items-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }

    .navbar {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }

    .nav-brand h1 {
        font-size: 26px;
    }

    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .shop-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .shop-header h2 {
        font-size: 28px;
    }

    .header-buttons {
        flex-direction: column;
        width: 100%;
    }

    .header-buttons button {
        width: 100%;
    }

    .modal-content {
        width: 95%;
        padding: 25px;
        margin: 10% auto;
    }

    .admin-card {
        width: 95%;
        padding: 25px;
    }

    .chat-modal .modal-content {
        width: 100%;
        height: 100vh;
        max-height: 100vh;
        margin: 0;
        border-radius: 0;
    }

    .chat-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .chat-item-image {
        width: 60px;
        height: 60px;
    }

    .item-card {
        cursor: pointer;
    }

    .btn {
        padding: 10px 18px;
        font-size: 13px;
    }

    /* Боковая панель на мобильных */
    .chat-sidebar {
        width: 100%;
        left: -100%;
    }

    .chat-sidebar.active {
        left: 0;
    }
}

@media (max-width: 480px) {
    .items-grid {
        grid-template-columns: 1fr;
    }

    .auth-card {
        padding: 30px 20px;
    }

    .shop-screen {
        padding: 20px;
    }

    .item-title {
        font-size: 20px;
    }

    .item-price {
        font-size: 24px;
    }

    .chat-sidebar {
        width: 100%;
    }
}
