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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #2d3748;
    overflow-x: hidden;
    width: 100%;
}

.container {
    max-width: 480px;
    margin: 0 auto;
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow-x: hidden;
}

.header {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px;
}

.header h1 {
    font-size: 32px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 12px;
    line-height: 1.2;
    background: linear-gradient(135deg, #1e293b 0%, #475569 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header p {
    font-size: 16px;
    color: #64748b;
    margin: 0;
    font-weight: 500;
}

.registration-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow-x: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.user-type-selector {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 20px;
}

.type-btn {
    width: 100%;
    height: 80px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    color: #475569;
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 0 32px;
}

.type-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.6s ease;
}

.type-btn:hover {
    transform: translateY(-6px);
    border-color: #667eea;
    box-shadow: 0 16px 50px rgba(102, 126, 234, 0.25);
    background: linear-gradient(135deg, #f0f4ff 0%, #e0e7ff 100%);
}

.type-btn:hover::before {
    left: 100%;
}

.type-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
    box-shadow: 0 16px 50px rgba(102, 126, 234, 0.35);
    transform: translateY(-6px) scale(1.02);
}

.type-btn.active .type-icon {
    transform: scale(1.15) rotate(5deg);
}

.type-btn.active .type-title {
    color: white;
}

.type-btn.active .type-description {
    color: rgba(255, 255, 255, 0.9);
}

.type-btn-content {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
    height: 100%;
}

.type-icon {
    font-size: 40px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.15));
    flex-shrink: 0;
    width: 50px;
    text-align: center;
}

.type-btn:hover .type-icon {
    transform: scale(1.15);
}

.type-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

.type-title {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    transition: all 0.3s ease;
    line-height: 1.2;
    white-space: nowrap;
}

.type-description {
    font-size: 15px;
    color: #64748b;
    font-weight: 500;
    transition: all 0.3s ease;
    line-height: 1.3;
    white-space: nowrap;
}

@keyframes selectPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.08);
    }
    100% {
        transform: scale(1);
    }
}

.type-btn.selecting {
    animation: selectPulse 0.6s ease-in-out;
}

@media (max-width: 768px) {
    .user-type-selector {
        padding: 30px 16px;
        gap: 20px;
        max-width: 100%;
    }
    
    .type-btn {
        height: 90px;
        padding: 0 24px;
        border-radius: 18px;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    }
    
    .type-icon {
        font-size: 36px;
        width: 45px;
    }
    
    .type-title {
        font-size: 18px;
    }
    
    .type-description {
        font-size: 14px;
    }
    
    .type-btn-content {
        gap: 16px;
    }
    
    .type-btn:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 40px rgba(102, 126, 234, 0.25);
    }
}

@media (max-width: 480px) {
    .user-type-selector {
        padding: 20px 12px;
        gap: 16px;
    }
    
    .type-btn {
        height: 85px;
        padding: 0 20px;
        border-radius: 16px;
        box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
    }
    
    .type-icon {
        font-size: 32px;
        width: 40px;
    }
    
    .type-title {
        font-size: 17px;
    }
    
    .type-description {
        font-size: 13px;
    }
    
    .type-btn-content {
        gap: 14px;
    }
}

@media (max-width: 360px) {
    .user-type-selector {
        padding: 16px 8px;
    }
    
    .type-btn {
        height: 80px;
        padding: 0 16px;
    }
    
    .type-icon {
        font-size: 28px;
        width: 35px;
    }
    
    .type-title {
        font-size: 16px;
    }
    
    .type-description {
        font-size: 12px;
    }
    
    .type-btn-content {
        gap: 12px;
    }
}

.back-btn-container {
    margin-bottom: 1rem;
}

.back-btn {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: white;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(107, 114, 128, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.back-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.back-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(107, 114, 128, 0.4);
}

.back-btn:hover::before {
    left: 100%;
}

.back-icon svg {
    width: 24px;
    height: 24px;
    transition: all 0.3s ease;
}

.back-btn:hover .back-icon svg {
    transform: translateX(-2px);
}

.user-profile {
    background: #fff;
    border-radius: 10px;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    border: 1px solid #ececec;
    width: 100%;
}

.profile-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.profile-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #6366f1;
    flex-shrink: 0;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.profile-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #222;
    margin-bottom: 0.25rem;
    word-wrap: break-word;
}

.profile-username {
    color: #888;
    font-size: 0.9rem;
    word-wrap: break-word;
}

.registration-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    flex: 1;
    width: 100%;
    overflow-x: hidden;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-bottom: 0.7rem;
    width: 100%;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    font-weight: 600;
    color: #222;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.8);
    width: 100%;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: rgba(255, 255, 255, 0.95);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #f56565;
    box-shadow: 0 0 0 3px rgba(245, 101, 101, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.social-platforms {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    justify-content: center;
    width: 100%;
}

.social-btn {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.5s;
}

.social-btn:hover {
    transform: translateY(-2px);
    border-color: #667eea;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.2);
}

.social-btn:hover::before {
    left: 100%;
}

.social-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.social-btn .social-icon {
    width: 64px;
    height: 64px;
    transition: all 0.3s ease;
}

.social-btn:hover .social-icon {
    transform: scale(1.1);
}

.social-icon-small {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-right: 4px;
}

#socialInputs {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

.social-input-row {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.social-input-row:hover {
    border-color: #667eea;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.15);
}

.social-input-row.active {
    border-color: #667eea;
    background: #f8faff;
}

.social-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.social-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: #1e293b;
    font-size: 16px;
}

.social-label img {
    width: 48px;
    height: 48px;
}

.remove-social {
    background: #f1f5f9;
    color: #64748b;
    border: none;
    border-radius: 8px;
    width: 36px;
    height: 36px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.remove-social:hover {
    background: #ef4444;
    color: white;
    transform: scale(1.05);
}

.social-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.social-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.social-field label {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.social-field input,
.social-field select {
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
    font-weight: 500;
}

.social-field input:focus,
.social-field select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: #f8faff;
}

.social-field.full-width {
    grid-column: 1 / -1;
}

.social-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

.add-social-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.add-social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.add-social-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

.add-social-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.add-social-btn::before {
    content: "✓";
    font-weight: bold;
    font-size: 16px;
}

@media (max-width: 768px) {
    .social-fields {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .social-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .social-actions {
        flex-direction: column;
    }
    
    .add-social-btn {
        width: 100%;
        justify-content: center;
    }
}

.checkbox-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.4;
    padding: 0.5rem 0;
    width: 100%;
}

.checkbox-item input[type="checkbox"] {
    margin-top: 0.2rem;
    width: 18px;
    height: 18px;
    accent-color: #6366f1;
    flex-shrink: 0;
}

.terms-link {
    color: #6366f1;
    text-decoration: none;
    font-weight: 500;
}

.terms-link:hover {
    text-decoration: underline;
}

.submit-btn {
    padding: 16px 32px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.3);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 8px;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.4);
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:disabled {
    background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 4px 15px rgba(156, 163, 175, 0.3);
}

.btn-loading {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Адаптивность */
@media (max-width: 768px) {
    body {
        padding: 10px;
        overflow-x: hidden;
    }
    
    .container {
        padding: 0;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .registration-container {
        padding: 1.25rem;
        margin: 0 0 1rem 0;
        border-radius: 12px;
    }
    
    .user-type-selector {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    
    .type-btn {
        max-width: 100%;
        width: 100%;
        padding: 1rem;
    }
    
    .type-btn .icon {
        font-size: 2rem;
    }
    
    .type-btn span:not(.icon) {
        font-size: 1rem;
    }
    
    .form-navigation {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    
    .nav-btn {
        width: 100%;
        padding: 16px 24px;
        font-size: 1.1rem;
        min-width: auto;
    }
    
    .preview-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    
    .edit-btn,
    .confirm-btn {
        width: 100%;
        padding: 16px 24px;
        font-size: 1.1rem;
        min-width: auto;
    }
    
    .social-input-row {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    
    .social-label {
        min-width: auto;
        margin-bottom: 0.25rem;
    }
    
    .social-input-row input {
        min-width: auto;
        width: 100%;
    }
    
    .admin-panel-btn {
        top: 15px;
        right: 15px;
    }
    
    .admin-btn {
        width: 45px;
        height: 45px;
    }
    
    .admin-icon {
        width: 20px;
        height: 20px;
    }
    
    .preview-container {
        padding: 1.25rem;
        margin: 0;
        border-radius: 12px;
    }
    
    .preview-content {
        padding: 1rem;
    }
    
    .submit-btn {
        padding: 16px 24px;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 8px;
        overflow-x: hidden;
    }
    
    .header {
        margin-bottom: 30px;
        padding: 16px;
    }
    
    .header h1 {
        font-size: 28px;
    }
    
    .header p {
        font-size: 15px;
    }
    
    .registration-container {
        padding: 1rem;
        border-radius: 12px;
        margin: 0 0 0.75rem 0;
    }
    
    .preview-container {
        padding: 1rem;
        border-radius: 12px;
        margin: 0;
    }
    
    .preview-content {
        padding: 0.875rem;
    }
    
    .type-btn {
        padding: 0.875rem;
    }
    
    .type-btn .icon {
        font-size: 1.75rem;
    }
    
    .type-btn span:not(.icon) {
        font-size: 0.95rem;
    }
    
    .nav-btn {
        padding: 14px 20px;
        font-size: 1rem;
    }
    
    .edit-btn,
    .confirm-btn {
        padding: 14px 20px;
        font-size: 1rem;
    }
    
    .submit-btn {
        padding: 14px 24px;
        font-size: 1.1rem;
    }
    
    .form-group {
        margin-bottom: 0.875rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 14px;
        font-size: 0.95rem;
    }
    
    .social-btn {
        width: 80px;
        height: 80px;
    }
    
    .social-icon {
        width: 48px;
        height: 48px;
    }
    
    .profile-avatar {
        width: 45px;
        height: 45px;
    }
    
    .profile-name {
        font-size: 1rem;
    }
    
    .profile-username {
        font-size: 0.85rem;
    }
}

/* Дополнительные стили для предотвращения горизонтальной прокрутки */
html {
    overflow-x: hidden;
    width: 100%;
}

* {
    max-width: 100%;
}

/* Исправление для модального окна */
.modal {
    overflow-x: hidden;
}

.modal-content {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

/* Исправление для админ панели */
.admin-panel {
    width: 100%;
    overflow-x: hidden;
}

.admin-content {
    width: 100%;
    overflow-x: hidden;
}

.users-list {
    width: 100%;
    overflow-x: hidden;
}

.user-card {
    width: 100%;
    box-sizing: border-box;
}

/* Анимации появления полей */
.blogger-field,
.supplier-field {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Стили для Telegram Web App */
.tg-theme-bg {
    background: var(--tg-theme-bg-color, #ffffff);
}

.tg-theme-text {
    color: var(--tg-theme-text-color, #333);
}

.tg-theme-button {
    background: var(--tg-theme-button-color, white);
    color: var(--tg-theme-button-text-color, white);
}

.tg-theme-secondary-bg {
    background: var(--tg-theme-secondary-bg-color, #f8f9fa);
}

/* Кнопка админ панели */
.admin-panel-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.admin-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: #ffffff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.admin-btn:hover {
    background: #4f46e5;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.admin-icon {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

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

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 0;
    max-width: 400px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    background: #334155;
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: white;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.close-btn:hover {
    background: rgba(255,255,255,0.12);
}

.modal-body {
    padding: 30px;
}

.admin-login-btn {
    width: 100%;
    padding: 15px;
    background: #334155;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.admin-login-btn:hover {
    background: #1e293b;
    box-shadow: 0 8px 25px rgba(51, 65, 85, 0.18);
}

.admin-login-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Админ панель */
.admin-panel {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    flex: 1;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.admin-header h1 {
    color: #334155;
    margin: 0;
}

.logout-btn {
    padding: 10px 20px;
    background: #64748b;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: #475569;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: #334155;
    color: white;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.stat-card h3 {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #cbd5e1;
    opacity: 0.9;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 0;
    color: white;
}

.admin-users h2 {
    color: #2d3748;
    margin-bottom: 20px;
}

.users-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.no-users {
    text-align: center;
    color: #666;
    padding: 40px;
    font-style: italic;
}

.user-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.user-card:hover {
    border-color: #334155;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.1);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #ffffff;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-details {
    flex: 1;
    min-width: 0;
}

.user-name {
    font-weight: 600;
    color: #334155;
    margin-bottom: 4px;
}

.user-username {
    color: #718096;
    font-size: 14px;
    margin-bottom: 4px;
}

.user-type {
    font-size: 14px;
    color: #4a5568;
    margin-bottom: 4px;
}

.user-company {
    font-size: 14px;
    color: #718096;
}

.user-actions {
    display: flex;
    gap: 10px;
}

.view-btn, .delete-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.view-btn {
    background: #334155;
    color: white;
}

.view-btn:hover {
    background: #1e293b;
    transform: translateY(-1px);
}

.delete-btn {
    background: #64748b;
    color: white;
}

.delete-btn:hover {
    background: #334155;
    transform: translateY(-1px);
}

/* Детали пользователя */
.user-details-full {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.detail-row {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.detail-row strong {
    color: #2d3748;
    display: inline-block;
    width: 150px;
}

.social-networks-list {
    margin-top: 10px;
    padding-left: 20px;
}

.social-item {
    padding: 5px 0;
    color: #4a5568;
}

/* Статусы пользователей */
.user-status {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 500;
    margin-top: 4px;
    display: inline-block;
}

.user-status.approved {
    background: #64748b;
    color: white;
    border: 1px solid #c3e6cb;
}

.user-status.pending {
    background: #f59e0b;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.user-status.rejected {
    background: #ef4444;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Кнопки модерации */
.approve-btn, .reject-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.approve-btn {
    background: #64748b;
    color: white;
}

.approve-btn:hover {
    background: #334155;
    transform: translateY(-1px);
}

.reject-btn {
    background: #ef4444;
    color: white;
}

.reject-btn:hover {
    background: #b91c1c;
    transform: translateY(-1px);
}

.moderation-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.moderation-actions .approve-btn,
.moderation-actions .reject-btn {
    flex: 1;
    padding: 12px;
    font-size: 14px;
}

/* Фильтры статусов */
.status-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.status-filter {
    padding: 8px 16px;
    border: 2px solid #cbd5e1;
    background: white;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    color: #334155;
}

.status-filter.active {
    border-color: #334155;
    background: #334155;
    color: white;
}

.status-filter:hover {
    border-color: #334155;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

/* Google reCAPTCHA */
.g-recaptcha {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.g-recaptcha > div {
    transform: scale(0.9);
    transform-origin: center;
}

@media (max-width: 480px) {
    .g-recaptcha > div {
        transform: scale(0.8);
    }
}

/* Кнопки навигации */
.form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.25rem;
    gap: 0.75rem;
    flex-wrap: wrap;
    width: 100%;
}

.nav-btn {
    padding: 14px 28px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.nav-btn:hover::before {
    left: 100%;
}

.nav-btn.prev-btn {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    box-shadow: 0 6px 20px rgba(107, 114, 128, 0.3);
}

.nav-btn.prev-btn:hover {
    box-shadow: 0 10px 30px rgba(107, 114, 128, 0.4);
}

.nav-btn.next-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
}

.nav-btn.next-btn:hover {
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
}

/* Стили для предварительного просмотра */
.preview-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.preview-header {
    text-align: center;
    margin-bottom: 30px;
}

.preview-header h3 {
    color: #1F2937;
    margin-bottom: 8px;
}

.preview-header p {
    color: #6B7280;
    margin: 0;
}

.preview-section {
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.preview-section h4 {
    color: #1F2937;
    margin: 0 0 16px 0;
    font-size: 18px;
    font-weight: 600;
}

.preview-section p {
    margin: 8px 0;
    color: #374151;
    line-height: 1.5;
}

.preview-photo {
    display: flex;
    justify-content: center;
    margin: 16px 0;
}

.preview-products {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.preview-product-card {
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 16px;
}

.preview-product-card h5 {
    color: #1F2937;
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: 600;
}

.preview-product-photos {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.preview-socials {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.preview-social-card {
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 16px;
}

.preview-social-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.preview-social-header img {
    width: 48px;
    height: 48px;
}

.preview-total-price {
    background: #F0F9FF;
    border: 1px solid #BAE6FD;
    border-radius: 8px;
    padding: 16px;
    margin-top: 16px;
    text-align: center;
}

.preview-total-price h5 {
    margin: 0;
    color: #0369A1;
    font-size: 18px;
    font-weight: 600;
}

/* Стили для карточек социальных сетей */
.social-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.social-card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

.social-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.social-card-header .social-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: #1e293b;
    font-size: 16px;
}

.social-card-header .social-label img {
    width: 48px;
    height: 48px;
}

.social-card-actions {
    display: flex;
    gap: 8px;
}

.edit-social-btn,
.remove-social-btn {
    background: #f1f5f9;
    color: #64748b;
    border: none;
    border-radius: 8px;
    width: 36px;
    height: 36px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.edit-social-btn:hover {
    background: #3b82f6;
    color: white;
    transform: scale(1.05);
}

.remove-social-btn:hover {
    background: #ef4444;
    color: white;
    transform: scale(1.05);
}

.social-card-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.social-card-details p {
    margin: 0;
    font-size: 14px;
    color: #64748b;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.social-card-details strong {
    color: #1e293b;
    font-weight: 600;
}

@media (max-width: 768px) {
    .social-card-details {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .social-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .social-card-actions {
        align-self: flex-end;
    }
}

/* Кнопки предварительного просмотра */
.preview-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 30px;
}

.edit-btn {
    padding: 14px 28px;
    background-color: #f3f4f6;
    color: #6b7280;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.edit-btn:hover {
    background-color: #e5e7eb;
    color: #4b5563;
    transform: translateY(-1px);
}

.confirm-btn {
    padding: 14px 28px;
    background: #10b981;
    color: white;
    border: 1px solid #10b981;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.confirm-btn:hover {
    background: #059669;
    border-color: #059669;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.25);
}

.confirm-btn:disabled {
    background: #9ca3af;
    border-color: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Скрытие элементов по шагам */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

/* Улучшенные стили для кнопок */
.add-product-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    display: none; /* Скрыта по умолчанию */
}

/* Показываем кнопку в модальном окне управления товарами */
.products-management-modal .add-product-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.add-product-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.add-product-form-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    margin-top: 24px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
    position: relative;
    overflow: hidden;
}

.add-product-form-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.add-product-form-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
}

.add-product-form-btn:disabled {
    background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 4px 15px rgba(156, 163, 175, 0.3);
}

/* Улучшенные стили для фото товаров */
.product-photos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px;
    border: 2px dashed #cbd5e1;
    transition: all 0.3s ease;
}

.product-photos:hover {
    border-color: #667eea;
    background: linear-gradient(135deg, #f0f4ff 0%, #e0e7ff 100%);
}

.product-photo-item {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 14px;
    overflow: hidden;
    border: 3px dashed #667eea;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    transition: all 0.3s ease;
    font-size: 28px;
    color: #4f46e5;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.product-photo-item:hover {
    border-color: #667eea;
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
}

.product-photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.product-photo-item:hover img {
    transform: scale(1.1);
}

.product-photo-item .remove-photo {
    position: absolute;
    top: 6px;
    right: 6px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.product-photo-item .remove-photo:hover {
    transform: scale(1.2);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.4);
}

/* Улучшенные стили для карточек товаров */
.product-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.product-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f1f5f9;
}

.product-card-title {
    font-weight: 700;
    color: #1e293b;
    font-size: 18px;
}

.remove-product-btn {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
    font-weight: bold;
}

.remove-product-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.4);
}

/* Улучшенные стили для формы товара */
.product-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.product-form-grid.full-width {
    grid-template-columns: 1fr;
}

.product-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-form-group label {
    font-size: 14px;
    color: #475569;
    font-weight: 600;
    margin-bottom: 4px;
}

.product-form-group input,
.product-form-group select,
.product-form-group textarea {
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #ffffff;
}

.product-form-group input:focus,
.product-form-group select:focus,
.product-form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.product-form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Улучшенные стили для радио кнопок */
.collaboration-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.collaboration-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.collaboration-option:hover {
    background: rgba(102, 126, 234, 0.1);
}

.collaboration-option input[type="radio"] {
    margin: 0;
    width: 18px;
    height: 18px;
    accent-color: #667eea;
}

.collaboration-option label {
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    margin: 0;
}

/* Адаптивность для улучшенного дизайна */
@media (max-width: 768px) {
    .product-photos {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 10px;
        padding: 16px;
    }
    
    .product-photo-item {
        width: 80px;
        height: 80px;
        font-size: 24px;
        border-width: 3px;
        border-radius: 12px;
    }
    
    .product-form-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .add-product-btn {
        width: 70px;
        height: 70px;
        font-size: 28px;
    }
}

/* Стили для деталей товара в карточках */
.product-details {
    margin-top: 20px;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.product-detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.detail-label {
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    font-size: 14px;
    color: #1e293b;
    font-weight: 500;
}

.detail-link {
    font-size: 14px;
    color: #667eea;
    font-weight: 500;
    text-decoration: none;
    word-break: break-all;
    transition: all 0.3s ease;
}

.detail-link:hover {
    color: #5a67d8;
    text-decoration: underline;
}

.product-detail-full {
    padding: 16px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 12px;
    border: 1px solid #bae6fd;
}

.detail-text {
    margin: 8px 0 0 0;
    font-size: 14px;
    color: #0c4a6e;
    line-height: 1.6;
    white-space: pre-wrap;
}

/* Адаптивность для деталей товара */
@media (max-width: 768px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .product-detail-item {
        padding: 10px;
    }
    
    .product-detail-full {
        padding: 12px;
    }
}

/* Прогрессбар */
.progress-container {
    margin: 20px 0;
    text-align: center;
    padding: 0 20px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #F3F4F6;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 12px;
    position: relative;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3B82F6, #1D4ED8, #1E40AF);
    border-radius: 6px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 25%; /* Начинаем с 25% для первого шага */
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.progress-text {
    font-size: 14px;
    color: #4B5563;
    font-weight: 600;
    letter-spacing: 0.025em;
}

/* Анимация прогрессбара */
.progress-fill {
    animation: progressPulse 3s ease-in-out infinite;
}

@keyframes progressPulse {
    0%, 100% {
        opacity: 1;
        transform: scaleY(1);
    }
    50% {
        opacity: 0.9;
        transform: scaleY(1.05);
    }
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .progress-container {
        margin: 15px 0;
        padding: 0 15px;
    }
    
    .progress-bar {
        height: 6px;
        border-radius: 4px;
    }
    
    .progress-fill {
        border-radius: 4px;
    }
    
    .progress-text {
        font-size: 12px;
        font-weight: 500;
    }
}

/* Экран статуса */
.status-screen {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.status-container {
    background: white;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.status-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.status-container.pending::before {
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
}

.status-container.approved::before {
    background: linear-gradient(90deg, #10b981, #059669);
}

.status-container.rejected::before {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

.status-container.unknown::before {
    background: linear-gradient(90deg, #6b7280, #4b5563);
}

.status-icon {
    font-size: 64px;
    margin-bottom: 20px;
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.status-container h2 {
    color: #1f2937;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
}

.status-info {
    margin-bottom: 30px;
}

.status-message {
    color: #6b7280;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.user-info {
    background: #f9fafb;
    border-radius: 12px;
    padding: 20px;
    text-align: left;
}

.user-info p {
    margin: 8px 0;
    color: #374151;
    font-size: 14px;
}

.user-info strong {
    color: #1f2937;
    font-weight: 600;
}

.refresh-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.refresh-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.refresh-btn:active {
    transform: translateY(0);
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .status-screen {
        padding: 15px;
    }
    
    .status-container {
        padding: 30px 20px;
        border-radius: 16px;
    }
    
    .status-icon {
        font-size: 48px;
    }
    
    .status-container h2 {
        font-size: 20px;
    }
    
    .status-message {
        font-size: 14px;
    }
    
    .user-info {
        padding: 15px;
    }
    
    .user-info p {
        font-size: 13px;
    }
}

/* Стили для маркетплейса */
.marketplace-screen {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow-x: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.marketplace-container {
    width: 100%;
    max-width: 100%;
}

.marketplace-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e2e8f0;
}

.marketplace-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.marketplace-header .back-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.marketplace-header .back-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.profile-section {
    width: 100%;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    flex-shrink: 0;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.profile-info h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.company-name {
    font-size: 18px;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 0.25rem;
}

.username {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

.edit-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    flex-shrink: 0;
}

.edit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

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

.support-btn {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.support-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 1.5rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.stat-card h3 {
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-number {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
}

.profile-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.detail-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.detail-section h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
}

.detail-section p {
    font-size: 16px;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.social-networks-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.social-network-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.social-network-item:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.social-icon img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

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

.social-name {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.social-link {
    font-size: 14px;
    color: #667eea;
    margin-bottom: 0.5rem;
    word-break: break-all;
}

.social-details {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.social-details span {
    font-size: 12px;
    color: #64748b;
    background: white;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.products-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.product-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.product-item:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.product-photos {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
}

.product-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-photo-placeholder {
    font-size: 12px;
    color: #64748b;
    text-align: center;
    padding: 1rem;
}

.product-photos-count {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
}

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

.product-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.product-info p {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 0.25rem;
}

.product-link {
    display: inline-block;
    margin-top: 0.5rem;
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.product-link:hover {
    color: #5a67d8;
    text-decoration: underline;
}

/* Стили для модального окна редактирования */
.edit-profile-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    overflow-y: auto;
    padding: 20px;
}

.edit-profile-modal .modal-content {
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    position: relative;
}

/* Стили для модального окна админ панели */
.admin-details-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    overflow-y: auto;
    padding: 20px;
}

.admin-details-modal .modal-content {
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    position: relative;
}

.admin-details-modal .modal-body {
    max-height: calc(90vh - 120px);
    overflow-y: auto;
    padding: 1.5rem;
}

.admin-details-modal .user-details-full {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.admin-details-modal .detail-row {
    padding: 0.75rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.admin-details-modal .detail-row strong {
    color: #1e293b;
    font-weight: 600;
    margin-right: 0.5rem;
}

.admin-details-modal .social-networks-list {
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.admin-details-modal .social-item {
    padding: 0.5rem;
    background: white;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    font-size: 14px;
}

.admin-details-modal .moderation-actions {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.admin-details-modal .approve-btn,
.admin-details-modal .reject-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.admin-details-modal .approve-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.admin-details-modal .approve-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.admin-details-modal .reject-btn {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.admin-details-modal .reject-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

/* Блокировка прокрутки основного контента при открытом модальном окне */
body.modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

.warning-message {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #f59e0b;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.warning-message p {
    margin-bottom: 0.5rem;
    color: #92400e;
    font-size: 14px;
    line-height: 1.5;
}

.warning-message p:last-child {
    margin-bottom: 0;
}

.warning-message strong {
    color: #78350f;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

.cancel-btn {
    background: #64748b;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cancel-btn:hover {
    background: #475569;
    transform: translateY(-2px);
}

/* Адаптивность для маркетплейса */
@media (max-width: 768px) {
    .marketplace-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .marketplace-header h1 {
        font-size: 20px;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .profile-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .profile-actions .edit-btn,
    .profile-actions .support-btn {
        width: 100%;
    }
    
    .profile-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .social-network-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .social-details {
        justify-content: center;
    }
    
    .product-item {
        flex-direction: column;
        text-align: center;
    }
    
    .form-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .marketplace-screen {
        padding: 1rem;
    }
    
    .profile-stats {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .detail-section {
        padding: 1rem;
    }
    
    .social-network-item {
        padding: 0.75rem;
    }
    
    .product-item {
        padding: 0.75rem;
    }
    
    /* Адаптивность для модального окна редактирования */
    .edit-profile-modal {
        padding: 10px;
    }
    
    .edit-profile-modal .modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .edit-profile-modal .modal-header h2 {
        font-size: 18px;
    }
    
    .edit-profile-modal .form-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .edit-profile-modal .form-actions button {
        width: 100%;
    }
    
    /* Адаптивность для модального окна админ панели */
    .admin-details-modal {
        padding: 10px;
    }
    
    .admin-details-modal .modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .admin-details-modal .modal-header h2 {
        font-size: 18px;
    }
    
    .admin-details-modal .modal-body {
        padding: 1rem;
        max-height: calc(95vh - 100px);
    }
    
    .admin-details-modal .detail-row {
        padding: 0.5rem;
        font-size: 14px;
    }
    
    .admin-details-modal .moderation-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .admin-details-modal .approve-btn,
    .admin-details-modal .reject-btn {
        width: 100%;
        padding: 10px 20px;
    }
}

/* Стили для кнопки маркетплейса в статусе */
.status-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.marketplace-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.marketplace-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

@media (max-width: 768px) {
    .status-actions {
        flex-direction: column;
    }
    
    .marketplace-btn {
        padding: 14px 24px;
        font-size: 14px;
    }
} 

.rejection-reason {
    margin: 1.5rem 0;
    padding: 1rem;
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.2);
    border-radius: 12px;
    border-left: 4px solid #dc3545;
}

.rejection-reason h3 {
    margin: 0 0 0.5rem 0;
    color: #dc3545;
    font-size: 1rem;
    font-weight: 600;
}

.rejection-reason p {
    margin: 0;
    color: #721c24;
    line-height: 1.5;
    font-size: 0.95rem;
}

.rejection-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    max-width: 300px;
    margin-top: 1rem;
}

.refill-form-btn,
.contact-support-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.refill-form-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.refill-form-btn:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.contact-support-btn {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(72, 187, 120, 0.3);
}

.contact-support-btn:hover {
    background: linear-gradient(135deg, #38a169 0%, #2f855a 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(72, 187, 120, 0.4);
}

@media (max-width: 768px) {
    .rejection-actions {
        max-width: 100%;
    }
    
    .refill-form-btn,
    .contact-support-btn {
        padding: 14px 20px;
        font-size: 0.95rem;
    }
}

/* Стили для чата с поддержкой */
.support-chat-modal .modal-content {
    max-width: 500px;
    height: 80vh;
    display: flex;
    flex-direction: column;
}

.support-chat-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.support-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 1rem;
    max-height: 400px;
}

.support-message {
    margin-bottom: 1rem;
    display: flex;
}

.support-message.user-message {
    justify-content: flex-end;
}

.support-message.admin-message {
    justify-content: flex-start;
}

.support-message-content {
    max-width: 70%;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    position: relative;
}

.user-message .support-message-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-bottom-right-radius: 4px;
}

.admin-message .support-message-content {
    background: white;
    color: #333;
    border: 1px solid #e2e8f0;
    border-bottom-left-radius: 4px;
}

.support-message-text {
    margin-bottom: 0.25rem;
    line-height: 1.4;
    word-wrap: break-word;
}

.support-message-time {
    font-size: 0.75rem;
    opacity: 0.7;
}

.support-chat-form {
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
}

.support-chat-form textarea {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    resize: none;
    font-family: inherit;
    font-size: 0.9rem;
}

.support-chat-form textarea:focus {
    outline: none;
    border-color: #667eea;
}

.send-support-btn {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.send-support-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.send-support-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.loading-message,
.no-messages {
    text-align: center;
    color: #64748b;
    padding: 2rem;
}

.no-messages p {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.no-messages small {
    opacity: 0.7;
}

.error-message {
    text-align: center;
    color: #dc3545;
    padding: 1rem;
}

@media (max-width: 768px) {
    .support-chat-modal .modal-content {
        height: 90vh;
        margin: 1rem;
    }
    
    .support-chat-messages {
        max-height: 300px;
    }
    
    .support-message-content {
        max-width: 85%;
    }
    
    .support-chat-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .send-support-btn {
        align-self: flex-end;
        width: fit-content;
    }
}

/* Стили для админ интерфейса чатов с поддержкой */
.admin-header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.support-chats-btn {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.support-chats-btn:hover {
    background: linear-gradient(135deg, #38a169 0%, #2f855a 100%);
    transform: translateY(-1px);
}

.support-chats-modal .modal-content {
    max-width: 800px;
    max-height: 80vh;
}

.support-chats-list {
    max-height: 60vh;
    overflow-y: auto;
}

.support-chat-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.support-chat-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.support-chat-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.support-chat-user h3 {
    margin: 0 0 0.25rem 0;
    color: #1e293b;
    font-size: 1.1rem;
}

.support-chat-user p {
    margin: 0;
    color: #64748b;
    font-size: 0.9rem;
}

.support-chat-stats {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.message-count {
    background: #f1f5f9;
    color: #475569;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.chat-status {
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.chat-status.status-open {
    background: #dcfce7;
    color: #166534;
}

.chat-status.status-closed {
    background: #fee2e2;
    color: #991b1b;
}

.support-chat-last-message {
    margin-bottom: 0.75rem;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 3px solid #667eea;
}

.support-chat-last-message p {
    margin: 0;
    color: #475569;
    font-size: 0.9rem;
    line-height: 1.4;
}

.support-chat-actions {
    display: flex;
    gap: 0.5rem;
}

.open-chat-btn,
.close-chat-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.open-chat-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.open-chat-btn:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    transform: translateY(-1px);
}

.close-chat-btn {
    background: #dc3545;
    color: white;
}

.close-chat-btn:hover {
    background: #c82333;
    transform: translateY(-1px);
}

.no-chats {
    text-align: center;
    color: #64748b;
    padding: 2rem;
    font-size: 1.1rem;
}

.admin-support-chat-modal .modal-content {
    max-width: 600px;
    height: 80vh;
    display: flex;
    flex-direction: column;
}

.admin-support-chat-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.admin-support-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 1rem;
    max-height: 400px;
}

.admin-support-chat-form {
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
}

.admin-support-chat-form textarea {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    resize: none;
    font-family: inherit;
    font-size: 0.9rem;
}

.admin-support-chat-form textarea:focus {
    outline: none;
    border-color: #667eea;
}

@media (max-width: 768px) {
    .admin-header-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .support-chats-modal .modal-content {
        margin: 1rem;
        max-height: 90vh;
    }
    
    .support-chat-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .support-chat-stats {
        align-items: flex-start;
    }
    
    .support-chat-actions {
        flex-direction: column;
    }
    
    .admin-support-chat-modal .modal-content {
        height: 90vh;
        margin: 1rem;
    }
    
    .admin-support-chat-messages {
        max-height: 300px;
    }
    
    .admin-support-chat-form {
        flex-direction: column;
        align-items: stretch;
    }
} 

/* Стили для интерфейса просмотра товаров */
.products-screen {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow-x: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.products-container {
    width: 100%;
    max-width: 100%;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e2e8f0;
}

.products-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.products-count {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
    background: #f1f5f9;
    padding: 8px 12px;
    border-radius: 8px;
}

.view-products-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.view-products-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.empty-products {
    text-align: center;
    padding: 4rem 2rem;
    color: #64748b;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-products h2 {
    font-size: 24px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 1rem;
}

.empty-products p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.suppliers-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.supplier-section {
    background: #f8fafc;
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
}

.supplier-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.supplier-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.supplier-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 3px solid #e2e8f0;
}

.supplier-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.supplier-details {
    flex: 1;
    min-width: 0;
}

.supplier-name {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.supplier-company {
    font-size: 16px;
    font-weight: 500;
    color: #475569;
    margin-bottom: 0.25rem;
}

.supplier-username {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.supplier-category {
    font-size: 14px;
    color: #667eea;
    font-weight: 500;
    background: rgba(102, 126, 234, 0.1);
    padding: 4px 8px;
    border-radius: 6px;
    display: inline-block;
}

.supplier-products {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.product-card {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    display: flex;
    gap: 1rem;
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #667eea;
}

.product-photos {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
}

.product-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-photo-placeholder {
    color: #94a3b8;
    font-size: 12px;
    text-align: center;
    padding: 1rem;
}

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

.product-name {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.product-info p {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.product-task {
    font-size: 12px;
    color: #475569;
    background: #f1f5f9;
    padding: 0.5rem;
    border-radius: 6px;
    margin-top: 0.5rem;
    line-height: 1.4;
}

.product-link {
    display: inline-block;
    color: #667eea;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    margin-top: 0.5rem;
    padding: 4px 8px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.product-link:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: translateY(-1px);
}

/* Индикатор загрузки */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.loading-spinner {
    text-align: center;
    color: #667eea;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e2e8f0;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

.loading-spinner p {
    font-size: 16px;
    font-weight: 500;
    color: #475569;
}

/* Адаптивность */
@media (max-width: 768px) {
    .products-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .header-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .supplier-info {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .supplier-avatar {
        width: 80px;
        height: 80px;
    }
    
    .product-card {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .product-photos {
        width: 100%;
        height: 120px;
    }
}

@media (max-width: 480px) {
    .products-screen {
        padding: 1rem;
    }
    
    .products-header h1 {
        font-size: 24px;
    }
    
    .supplier-section {
        padding: 1rem;
    }
    
    .supplier-name {
        font-size: 16px;
    }
    
    .supplier-company {
        font-size: 14px;
    }
    
    .product-card {
        padding: 0.75rem;
    }
    
    .product-name {
        font-size: 15px;
    }
    
    .product-info p {
        font-size: 12px;
    }
} 

.supplier-field {
    /* Стили для supplier аналогичны seller */
}

/* Стили для модального окна блогеров */
.bloggers-modal .modal-content {
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
}

.bloggers-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.no-bloggers {
    text-align: center;
    padding: 40px;
    color: #666;
    font-style: italic;
}

.blogger-card {
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    padding: 20px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.blogger-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.blogger-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blogger-info h3 {
    margin: 0 0 5px 0;
    font-size: 18px;
    color: #2c3e50;
}

.blogger-company {
    margin: 0 0 3px 0;
    font-weight: 600;
    color: #34495e;
}

.blogger-username {
    margin: 0;
    color: #7f8c8d;
    font-size: 14px;
}

.blogger-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
}

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

.stat-label {
    font-size: 12px;
    color: #7f8c8d;
    margin-bottom: 3px;
}

.stat-value {
    font-weight: 600;
    color: #2c3e50;
}

.blogger-description {
    margin-bottom: 15px;
}

.blogger-description p {
    margin: 0;
    color: #34495e;
    line-height: 1.5;
}

.blogger-socials {
    margin-bottom: 15px;
}

.blogger-socials h4 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 16px;
}

.socials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.social-item {
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 12px;
    background: #f8f9fa;
}

.social-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.social-header img {
    width: 48px;
    height: 48px;
}

.social-details p {
    margin: 3px 0;
    font-size: 13px;
    color: #34495e;
}

.social-details a {
    color: #3498db;
    text-decoration: none;
}

.social-details a:hover {
    text-decoration: underline;
}

.blogger-collaboration {
    margin-bottom: 15px;
}

.blogger-collaboration h4 {
    margin: 0 0 8px 0;
    color: #2c3e50;
    font-size: 16px;
}

.blogger-collaboration p {
    margin: 0;
    color: #34495e;
    line-height: 1.5;
    font-style: italic;
}

.blogger-contact {
    text-align: center;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.send-application-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.send-application-btn:hover {
    background: #1e7e34;
}

.send-application-btn:active {
    background: #155724;
}

/* Стили для кнопки просмотра блогеров */
.view-bloggers-btn {
    background: #27ae60;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 10px;
    font-size: 14px;
}

.view-bloggers-btn:hover {
    background: #229954;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(39, 174, 96, 0.3);
}

.view-bloggers-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(39, 174, 96, 0.3);
}

/* Стили для кнопки просмотра заявок */
.view-applications-btn {
    background: #6f42c1;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 10px;
    font-size: 14px;
}

.view-applications-btn:hover {
    background: #5a32a3;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(111, 66, 193, 0.3);
}

.view-applications-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(111, 66, 193, 0.3);
}

/* Стили для календаря бронирований */
.calendar-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.calendar-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.calendar-screen {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow-x: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.calendar-container {
    width: 100%;
    max-width: 100%;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e2e8f0;
}

.calendar-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.calendar-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.calendar-nav-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.calendar-nav-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.calendar-nav-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.calendar-month {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    min-width: 150px;
    text-align: center;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-bottom: 2rem;
}

.calendar-day-header {
    text-align: center;
    font-weight: 600;
    color: #64748b;
    padding: 12px 8px;
    font-size: 14px;
    background: #f8fafc;
    border-radius: 8px;
}

.calendar-day {
    aspect-ratio: 1;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    position: relative;
    overflow: hidden;
}

.calendar-day:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.calendar-day.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.calendar-day.other-month {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Статусы для блогеров */
.calendar-day.status-available {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-color: #22c55e;
    color: #166534;
    font-weight: 600;
}

.calendar-day.status-available .calendar-day-number {
    color: #166534;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.calendar-day.status-pending {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-color: #f59e0b;
    color: #92400e;
    font-weight: 600;
}

.calendar-day.status-pending .calendar-day-number {
    color: #92400e;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.calendar-day.status-booked {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    border-color: #16a34a;
    color: #166534;
    font-weight: 600;
}

.calendar-day.status-booked .calendar-day-number {
    color: #166534;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.calendar-day.status-blocked {
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    border-color: #111827;
    color: #f9fafb;
    font-weight: 600;
}

.calendar-day.status-blocked .calendar-day-number {
    color: #f9fafb;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Статусы для поставщиков */
.calendar-day.status-no-applications {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-color: #cbd5e1;
    color: #475569;
    font-weight: 600;
}

.calendar-day.status-no-applications .calendar-day-number {
    color: #475569;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.calendar-day.status-in-progress {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-color: #ef4444;
    color: #991b1b;
    font-weight: 600;
}

.calendar-day.status-in-progress .calendar-day-number {
    color: #991b1b;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.calendar-day.status-completed {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    border-color: #16a34a;
    color: #166534;
    font-weight: 600;
}

.calendar-day.status-completed .calendar-day-number {
    color: #166534;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

/* Индикаторы для дней с бронированиями */
.calendar-day.status-pending::after,
.calendar-day.status-booked::after,
.calendar-day.status-blocked::after,
.calendar-day.status-in-progress::after,
.calendar-day.status-completed::after {
    content: '';
    position: absolute;
    top: 4px;
    right: 4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.calendar-day.status-pending::after {
    background: #f59e0b;
}

.calendar-day.status-booked::after {
    background: #16a34a;
}

.calendar-day.status-blocked::after {
    background: #111827;
}

.calendar-day.status-in-progress::after {
    background: #ef4444;
}

.calendar-day.status-completed::after {
    background: #16a34a;
}

.calendar-day-number {
    position: absolute;
    top: 8px;
    left: 8px;
    font-weight: 700;
    font-size: 14px;
    color: #1e293b;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.calendar-day.selected .calendar-day-number {
    color: white;
}

.time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    margin-top: 1rem;
}

.time-slot {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
}

.time-slot:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

/* Статусы временных слотов */
.time-slot.status-available {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-color: #22c55e;
}

.time-slot.status-created {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-color: #f59e0b;
}

.time-slot.status-accepted {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-color: #ef4444;
    cursor: not-allowed;
}

.time-slot.status-completed {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    border-color: #16a34a;
    cursor: not-allowed;
}

.time-slot.status-rejected {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-color: #cbd5e1;
}

.time-slot.status-blocked {
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    border-color: #111827;
    cursor: not-allowed;
    color: white;
}

.time-slot-time {
    font-weight: 600;
    font-size: 16px;
    color: #1e293b;
    margin-bottom: 4px;
}

.time-slot.status-accepted .time-slot-time,
.time-slot.status-completed .time-slot-time,
.time-slot.status-blocked .time-slot-time {
    color: #64748b;
}

.time-slot.status-blocked .time-slot-time {
    color: #f3f4f6;
}

.time-slot-status {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.time-slot.status-available .time-slot-status {
    color: #16a34a;
}

.time-slot.status-created .time-slot-status {
    color: #d97706;
}

.time-slot.status-accepted .time-slot-status {
    color: #dc2626;
}

.time-slot.status-completed .time-slot-status {
    color: #16a34a;
}

.time-slot.status-rejected .time-slot-status {
    color: #64748b;
}

.time-slot.status-blocked .time-slot-status {
    color: #f3f4f6;
}

/* Стили для прошедших дат */
.time-slot.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.time-slot.disabled:hover {
    transform: none;
    border-color: #e2e8f0;
    box-shadow: none;
}

.booking-form {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.booking-form h3 {
    margin: 0 0 1rem 0;
    color: #1e293b;
    font-size: 18px;
    font-weight: 600;
}

.booking-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.booking-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.booking-form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #475569;
}

.booking-form-group select,
.booking-form-group textarea {
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

.booking-form-group select:focus,
.booking-form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.booking-form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.booking-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.booking-save-btn,
.booking-cancel-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.booking-save-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.booking-save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

.booking-cancel-btn {
    background: #64748b;
    color: white;
}

.booking-cancel-btn:hover {
    background: #475569;
    transform: translateY(-2px);
}

.no-bookings {
    text-align: center;
    padding: 3rem 2rem;
    color: #64748b;
    font-size: 16px;
    background: #f8fafc;
    border-radius: 12px;
    border: 2px dashed #e2e8f0;
}

/* Стили для заголовка временных слотов */
#timeSlotsContainer h3 {
    margin-bottom: 1rem;
    color: #1e293b;
    font-size: 18px;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Стили для кнопок действий в бронированиях */
.booking-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.booking-actions .btn {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.booking-actions .btn-success {
    background: #16a34a;
    color: white;
}

.booking-actions .btn-success:hover {
    background: #15803d;
    transform: translateY(-1px);
}

.booking-actions .btn-danger {
    background: #dc2626;
    color: white;
}

.booking-actions .btn-danger:hover {
    background: #b91c1c;
    transform: translateY(-1px);
}

.booking-actions .btn-primary {
    background: #3b82f6;
    color: white;
}

.booking-actions .btn-primary:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.booking-actions .btn-warning {
    background: #f59e0b;
    color: white;
}

.booking-actions .btn-warning:hover {
    background: #d97706;
    transform: translateY(-1px);
}

/* Детали бронирования */
.booking-details {
    background: #f8fafc;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 16px;
}

.booking-details p {
    margin: 8px 0;
    color: #374151;
    font-size: 14px;
}

.booking-details strong {
    color: #1f2937;
    font-weight: 600;
}

/* Адаптивность для календаря */
@media (max-width: 768px) {
    .calendar-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .calendar-header h1 {
        font-size: 24px;
    }
    
    .calendar-nav {
        width: 100%;
        justify-content: space-between;
    }
    
    .calendar-grid {
        gap: 4px;
    }
    
    .calendar-day {
        border-radius: 8px;
    }
    
    .calendar-day-number {
        font-size: 12px;
        top: 4px;
        left: 4px;
    }
    
    .time-slots {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 8px;
    }
    
    .time-slot {
        padding: 12px;
    }
    
    .time-slot-time {
        font-size: 14px;
    }
    
    .booking-form-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .booking-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .calendar-screen {
        padding: 1rem;
    }
    
    .calendar-header h1 {
        font-size: 20px;
    }
    
    .calendar-month {
        font-size: 16px;
        min-width: 120px;
    }
    
    .calendar-nav-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .time-slots {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    }
    
    .time-slot {
        padding: 8px;
    }
    
    .time-slot-time {
        font-size: 12px;
    }
    
    .time-slot-status {
        font-size: 10px;
    }
}

/* Стили для header-actions в профиле поставщика */
.marketplace-header .header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .marketplace-header .header-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .view-bloggers-btn {
        margin-right: 0;
        width: 100%;
    }
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .blogger-stats {
        flex-direction: column;
        gap: 10px;
    }
    
    .socials-grid {
        grid-template-columns: 1fr;
    }
    
    .blogger-header {
        flex-direction: column;
        text-align: center;
    }
}

/* Стили для модального окна заявок */
.applications-modal .modal-content,
.my-applications-modal .modal-content {
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
}

.applications-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.no-applications {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
    font-style: italic;
}

.application-card {
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    padding: 20px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.application-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.application-card.pending {
    border-left: 4px solid #ffc107;
}

.application-card.approved {
    border-left: 4px solid #28a745;
}

.application-card.rejected {
    border-left: 4px solid #dc3545;
}

.application-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.supplier-info,
.blogger-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.supplier-avatar,
.blogger-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.supplier-avatar img,
.blogger-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.supplier-details,
.blogger-details {
    flex: 1;
}

.supplier-details h3,
.blogger-details h3 {
    margin: 0 0 5px 0;
    color: #2c3e50;
    font-size: 18px;
}

.supplier-company,
.blogger-company {
    margin: 0 0 3px 0;
    color: #34495e;
    font-weight: 500;
}

.blogger-audience {
    margin: 0;
    color: #7f8c8d;
    font-size: 14px;
}

.application-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-approved {
    background: #d4edda;
    color: #155724;
}

.status-rejected {
    background: #f8d7da;
    color: #721c24;
}

.product-info {
    margin-bottom: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.product-info h4 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 16px;
}

.product-info p {
    margin: 5px 0;
    color: #34495e;
    font-size: 14px;
}

.product-photo {
    margin-top: 10px;
    text-align: center;
}

.product-photo img {
    max-width: 200px;
    max-height: 150px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.application-message {
    margin-bottom: 15px;
    padding: 15px;
    background: #e3f2fd;
    border-radius: 8px;
    border-left: 4px solid #2196f3;
}

.application-message h4 {
    margin: 0 0 8px 0;
    color: #1976d2;
    font-size: 14px;
}

.application-message p {
    margin: 0;
    color: #1565c0;
    line-height: 1.5;
}

.application-details {
    margin-bottom: 15px;
}

.application-details p {
    margin: 5px 0;
    color: #34495e;
    font-size: 14px;
}

.product-info {
    margin-bottom: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #28a745;
}

.product-info h4 {
    margin: 0 0 10px 0;
    color: #155724;
    font-size: 14px;
}

.product-photos-mini {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.product-photo-mini {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid #e9ecef;
}

.blogger-socials {
    margin-bottom: 15px;
}

.blogger-socials h4 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 14px;
}

.social-networks-mini {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.social-mini {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    background: #f8f9fa;
    border-radius: 12px;
    font-size: 12px;
    color: #34495e;
}

.social-icon-tiny {
    width: 16px;
    height: 16px;
}

.application-date {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e1e5e9;
}

.application-date small {
    display: block;
    color: #6c757d;
    font-size: 12px;
    margin-bottom: 3px;
}

.application-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e1e5e9;
}

.approve-btn,
.reject-btn {
    flex: 1;
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.approve-btn {
    background: #28a745;
    color: white;
}

.approve-btn:hover {
    background: #1e7e34;
    transform: translateY(-1px);
}

.reject-btn {
    background: #dc3545;
    color: white;
}

.reject-btn:hover {
    background: #c82333;
    transform: translateY(-1px);
}

.close-btn {
    background: #6c757d;
    color: white;
}

.close-btn:hover {
    background: #545b62;
    transform: translateY(-1px);
}

.confirm-btn {
    background: #17a2b8;
    color: white;
}

.confirm-btn:hover {
    background: #138496;
    transform: translateY(-1px);
}

/* Стили для модального окна отправки заявки */
.application-modal .modal-content {
    max-width: 600px;
}

.application-modal .form-group {
    margin-bottom: 20px;
}

.application-modal .form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 600;
}

.application-modal .form-group select,
.application-modal .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.application-modal .form-group select:focus,
.application-modal .form-group textarea:focus {
    outline: none;
    border-color: #3498db;
}

.application-modal .form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.application-modal .form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 25px;
}

.application-modal .cancel-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.application-modal .cancel-btn:hover {
    background: #5a6268;
}

.application-modal .submit-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.application-modal .submit-btn:hover {
    background: #1e7e34;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .application-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .application-status {
        align-self: flex-start;
    }
    
    .application-actions {
        flex-direction: column;
    }
    
    .social-networks-mini {
        justify-content: center;
    }
    
    .application-modal .form-actions {
        flex-direction: column;
    }
    
    .application-modal .form-actions button {
        width: 100%;
    }
}

/* Стили для модального окна чата */
.chat-modal .chat-content {
    max-width: 500px;
    width: 100%;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 4px 24px rgba(0,0,0,0.15);
    padding: 0;
}
.chat-modal .modal-header {
    padding: 18px 24px 10px 24px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.chat-modal .modal-header h2 {
    font-size: 20px;
    margin: 0;
}
.chat-modal .close-btn {
    background: none;
    border: none;
    font-size: 28px;
    color: #888;
    cursor: pointer;
    transition: color 0.2s;
}
.chat-modal .close-btn:hover {
    color: #e74c3c;
}
.chat-modal .modal-body {
    padding: 18px 24px 24px 24px;
}

/* Стили для сообщений в чате */
.chat-messages {
    min-height: 200px;
    max-height: 300px;
    overflow-y: auto;
    background: #f8f9fa;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.chat-message {
    margin-bottom: 10px;
    word-break: break-word;
}

.chat-message.own {
    text-align: right;
}

.chat-message.other {
    text-align: left;
}

.chat-message-header {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
}

.chat-message-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.chat-message-author {
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.chat-message-content {
    padding: 8px 12px;
    border-radius: 8px;
    display: inline-block;
    max-width: 80%;
    word-break: break-word;
    font-size: 14px;
    line-height: 1.4;
}

.chat-message.own .chat-message-content {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.chat-message.other .chat-message-content {
    background: #ffffff;
    color: #1f2937;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.chat-message-time {
    font-size: 11px;
    color: #6b7280;
    margin-top: 2px;
    display: block;
}

.chat-message.own .chat-message-time {
    text-align: right;
}

.chat-message.other .chat-message-time {
    text-align: left;
}

/* Стили для формы отправки сообщений */
.chat-form {
    display: flex;
    gap: 8px;
    align-items: center;
}

.chat-input {
    flex: 1;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    font-size: 14px;
    background: #ffffff;
    color: #1f2937;
}

.chat-input:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.chat-submit-btn {
    background: #4f46e5;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.chat-submit-btn:hover {
    background: #3730a3;
}

.chat-submit-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

/* Стили для списка чатов */
.chats-modal .modal-content {
    max-width: 600px;
}

.chats-list {
    max-height: 400px;
    overflow-y: auto;
}

.chat-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    transition: all 0.2s;
}

.chat-card:hover {
    border-color: #4f46e5;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.1);
}

.chat-card div {
    margin-bottom: 8px;
    color: #374151;
    font-size: 14px;
}

.chat-card div:last-child {
    margin-bottom: 0;
}

.chat-card b {
    color: #1f2937;
    font-weight: 600;
}

.open-chat-btn {
    background: #4f46e5;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 8px;
}

.open-chat-btn:hover {
    background: #3730a3;
}

.no-chats {
    text-align: center;
    color: #6b7280;
    font-style: italic;
    padding: 20px;
}

.chat-btn {
    background: #4f46e5;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 18px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-right: 8px;
    transition: background 0.2s, transform 0.2s;
}
.chat-btn:hover {
    background: #3730a3;
    transform: translateY(-1px);
}

.view-chats-btn {
    background: linear-gradient(135deg, #4f46e5 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 12px 28px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(111, 66, 193, 0.15);
    transition: background 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}
.view-chats-btn:hover {
    background: linear-gradient(135deg, #3730a3 0%, #5f2e91 100%);
    transform: translateY(-2px);
}

/* Стили для модального окна редактирования социальных сетей */
.edit-social-modal .modal-content {
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.edit-social-modal .modal-header h2 {
    color: #1e293b;
    font-size: 24px;
    font-weight: 700;
}

.social-edit-row {
    display: grid;
    grid-template-columns: 140px 1fr 140px 120px 120px 50px;
    gap: 16px;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px;
    margin-bottom: 16px;
    border: 2px solid #e2e8f0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.social-edit-row::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.05), transparent);
    transition: left 0.6s ease;
}

.social-edit-row:hover::before {
    left: 100%;
}

.social-edit-row:hover {
    background: linear-gradient(135deg, #f0f4ff 0%, #e0e7ff 100%);
    border-color: #667eea;
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.15);
}

.social-edit-row select,
.social-edit-row input {
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.9);
    color: #1e293b;
    backdrop-filter: blur(10px);
}

.social-edit-row select:focus,
.social-edit-row input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
}

.social-edit-row select {
    cursor: pointer;
    font-weight: 500;
}

.social-edit-row input::placeholder {
    color: #94a3b8;
    font-size: 13px;
}

.remove-social-btn {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.remove-social-btn:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.4);
}

#addSocialBtn {
    width: 100%;
    padding: 18px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 24px 0;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

#addSocialBtn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

#addSocialBtn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

#addSocialBtn:hover::before {
    left: 100%;
}

#addSocialBtn:active {
    transform: translateY(-2px) scale(0.98);
}

/* Стили для управления товарами */
.manage-products-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.manage-products-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.products-management-modal .modal-content {
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
}

.products-management-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.add-product-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.add-product-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.products-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.product-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.product-item:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.product-photos {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
}

.product-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-photo-placeholder {
    color: #64748b;
    font-size: 12px;
    text-align: center;
}

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

.product-name {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.product-article,
.product-category,
.product-collaboration,
.product-review {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 0.25rem;
}

.product-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
}

.edit-product-btn,
.delete-product-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.edit-product-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.edit-product-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.delete-product-btn {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.delete-product-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.empty-products-message {
    text-align: center;
    padding: 3rem 2rem;
    color: #64748b;
    font-size: 16px;
    background: #f8fafc;
    border-radius: 12px;
    border: 2px dashed #e2e8f0;
}

/* Стили для модального окна добавления/редактирования товара */
.add-product-modal .modal-content {
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
}

.product-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-grid .form-group {
    margin-bottom: 0;
}

.product-photos {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.product-photo-item {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    border: 3px dashed #667eea;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.product-photo-item:hover {
    border-color: #667eea;
    background: #f1f5f9;
}

.product-photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.product-photo-item span {
    font-size: 24px;
    color: #4f46e5;
    font-weight: bold;
}

.remove-photo {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ef4444;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.remove-photo:hover {
    background: #dc2626;
    transform: scale(1.1);
}

/* Адаптивность для управления товарами */
@media (max-width: 768px) {
    .products-management-modal .modal-content {
        max-width: 95%;
        margin: 20px;
    }
    
    .product-item {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .product-actions {
        flex-direction: row;
        justify-content: center;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .add-product-modal .modal-content {
        max-width: 95%;
        margin: 20px;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .add-product-modal .product-photos {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 10px;
        padding: 16px;
    }
    
    .add-product-modal .product-photo-item {
        width: 80px;
        height: 80px;
        font-size: 24px;
        border-width: 3px;
        border-radius: 12px;
    }
}

@media (max-width: 480px) {
    .products-management-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .add-product-btn {
        width: 100%;
    }
    
    .product-photos {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
        gap: 8px;
        padding: 12px;
    }
    
    .product-photo-item {
        width: 70px;
        height: 70px;
        font-size: 20px;
        border-width: 2px;
        border-radius: 10px;
    }
    
    .product-name {
        font-size: 14px;
    }
    
    .product-article,
    .product-category,
    .product-collaboration,
    .product-review {
        font-size: 12px;
    }
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .edit-social-modal .modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .social-edit-row {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 16px;
    }
    
    .social-edit-row select,
    .social-edit-row input {
        padding: 8px 10px;
        font-size: 13px;
    }
    
    .remove-social-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
        justify-self: center;
    }
    
    #addSocialBtn {
        padding: 14px;
        font-size: 15px;
        margin: 16px 0;
    }
}

@media (max-width: 480px) {
    .edit-social-modal .modal-header h2 {
        font-size: 20px;
    }
    
    .add-product-modal .modal-content {
        max-width: 98%;
        margin: 10px;
        max-height: 95vh;
    }
    
    .add-product-modal .product-photos {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
        gap: 8px;
        padding: 12px;
    }
    
    .add-product-modal .product-photo-item {
        width: 70px;
        height: 70px;
        font-size: 20px;
        border-width: 2px;
        border-radius: 10px;
    }
    
    .social-edit-row {
        padding: 10px;
        margin-bottom: 8px;
    }
    
    .social-edit-row select,
    .social-edit-row input {
        padding: 6px 8px;
        font-size: 12px;
    }
    
    .remove-social-btn {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    #addSocialBtn {
        padding: 12px;
        font-size: 14px;
        margin: 12px 0;
    }
}

/* ===== СТИЛИ ДЛЯ ОТЗЫВОВ ===== */

.reviews-stats {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
}

.rating-overview {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
}

.average-rating {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.rating-number {
    font-size: 32px;
    font-weight: 700;
    color: #1e293b;
}

.stars {
    font-size: 24px;
    color: #FFD700;
    letter-spacing: 2px;
}

.total-reviews {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

.rating-breakdown {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rating-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.rating-bar span:first-child {
    width: 20px;
    text-align: center;
    font-weight: 600;
    color: #475569;
}

.rating-bar span:last-child {
    width: 30px;
    text-align: right;
    font-weight: 500;
    color: #64748b;
}

.bar {
    flex: 1;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #FFD700, #FFA500);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.review-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    transition: all 0.3s ease;
}

.review-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.reviewer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.reviewer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reviewer-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.reviewer-name {
    font-weight: 600;
    color: #1e293b;
    font-size: 14px;
}

.reviewer-type {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

.review-rating {
    font-size: 18px;
    color: #FFD700;
    letter-spacing: 1px;
}

.review-comment {
    color: #475569;
    line-height: 1.6;
    margin-bottom: 8px;
    font-size: 14px;
}

.review-date {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 500;
}

.no-reviews {
    text-align: center;
    padding: 40px 20px;
    color: #64748b;
    font-size: 16px;
    background: #f8fafc;
    border-radius: 12px;
    border: 2px dashed #cbd5e1;
}

.reviews-error {
    text-align: center;
    padding: 20px;
    color: #ef4444;
    background: #fef2f2;
    border-radius: 8px;
    border: 1px solid #fecaca;
}

.reviews-loading {
    text-align: center;
    padding: 20px;
    color: #64748b;
}

.add-review-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 16px;
    width: 100%;
}

.add-review-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.add-review-btn:active {
    transform: translateY(0);
}

.add-review-btn-small {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #333;
    border: none;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(255, 215, 0, 0.3);
    margin-top: 8px;
    display: inline-block;
}

.add-review-btn-small:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(255, 215, 0, 0.4);
}

.add-review-btn-small:active {
    transform: translateY(0);
}

/* Стили для рейтингов в карточках */
.blogger-rating,
.supplier-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    font-size: 14px;
}

.blogger-rating .rating-number,
.supplier-rating .rating-number {
    font-weight: 600;
    color: #1e293b;
    font-size: 16px;
}

.blogger-rating .stars,
.supplier-rating .stars {
    color: #FFD700;
    font-size: 16px;
    letter-spacing: 1px;
}

.blogger-rating .total-reviews,
.supplier-rating .total-reviews {
    color: #64748b;
    font-size: 12px;
}

/* Модальное окно отзыва */
.review-modal .modal-content {
    max-width: 500px;
}

.rating-input {
    margin-bottom: 20px;
}

.stars-container {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.star {
    font-size: 32px;
    color: #ccc;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.star:hover {
    transform: scale(1.1);
}

.star.active {
    color: #FFD700;
}

#reviewComment {
    width: 100%;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

#reviewComment:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Адаптивность для отзывов */
@media (max-width: 768px) {
    .rating-overview {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .average-rating {
        flex-direction: row;
        align-items: center;
        gap: 12px;
    }
    
    .rating-number {
        font-size: 28px;
    }
    
    .stars {
        font-size: 20px;
    }
    
    .review-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .review-rating {
        align-self: flex-start;
    }
    
    .review-item {
        padding: 12px;
    }
    
    .reviews-stats {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .rating-overview {
        gap: 12px;
    }
    
    .average-rating {
        gap: 8px;
    }
    
    .rating-number {
        font-size: 24px;
    }
    
    .stars {
        font-size: 18px;
    }
    
    .rating-bar {
        font-size: 12px;
        gap: 8px;
    }
    
    .reviewer-avatar {
        width: 32px;
        height: 32px;
    }
    
    .reviewer-name {
        font-size: 13px;
    }
    
    .reviewer-type {
        font-size: 11px;
    }
    
    .review-comment {
        font-size: 13px;
    }
    
    .review-date {
        font-size: 11px;
    }
    
    .add-review-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .add-review-btn-small {
        padding: 5px 10px;
        font-size: 11px;
    }
    
    .star {
        font-size: 28px;
    }
}

/* Миниатюры фото товара */
.product-photos-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}
.product-photo-preview-item {
  position: relative;
  width: 70px;
  height: 70px;
  border: 1.5px dashed #bfc9d8;
  border-radius: 8px;
  overflow: hidden;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}
.product-photo-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}
.product-photo-preview-item .remove-photo {
  position: absolute;
  top: 2px;
  right: 2px;
  background: #e74c3c;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  transition: background 0.2s;
  z-index: 2;
}
.product-photo-preview-item .remove-photo:hover {
  background: #c0392b;
}