/* Общие стили в стиле Eckdatenblatt */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #e2e8f0;
    background: #000000;
    min-height: 100vh;
    overflow-x: hidden;
}

.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: #1a202c;
    border-right: 1px solid #2d3748;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-header {
    padding: 2rem 1.5rem;
    border-bottom: 1px solid #2d3748;
}

.sidebar-header h2 {
    color: #e2e8f0;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.sidebar-nav {
    padding: 1rem 0;
    display: flex;
    flex-direction: column;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: #a0aec0;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background: #2d3748;
    color: #e2e8f0;
}

.nav-item.active {
    background: #2d3748;
    color: #498f95;
    border-left-color: #498f95;
}

.nav-item i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.nav-item span {
    font-size: 0.95rem;
    font-weight: 500;
}

/* Sidebar Badge */
.sidebar-badge {
    display: none;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    margin-left: auto;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    background: #e53e3e;
    border-radius: 10px;
    box-sizing: border-box;
}

.sidebar-badge.pulse {
    animation: sidebar-badge-pulse 1.4s ease-in-out infinite;
}

@keyframes sidebar-badge-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: .45; transform: scale(1.15); }
}

/* Sidebar Footer */
.sidebar-footer {
    margin-top: auto;
    padding: 1rem 0;
    border-top: 1px solid #2d3748;
}

.logout-btn {
    color: #fc8181 !important;
}

.logout-btn:hover {
    background: rgba(229, 62, 62, 0.15) !important;
    color: #e53e3e !important;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 280px;
    background: #000000;
    min-height: 100vh;
    padding: 2rem;
}

/* Top Bar */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #2d3748;
}

.top-bar h1 {
    color: #e2e8f0;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.back-link {
    color: #a0aec0;
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: #498f95;
}

.top-bar-actions {
    display: flex;
    gap: 1rem;
}

.top-bar-right {
    display: flex;
    gap: 16px;
    align-items: center;
}

.btn-edit,
.btn-delete {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-edit {
    background: linear-gradient(135deg, #498f95 0%, #5ba5ab 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(73, 143, 149, 0.3);
}

.btn-edit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(73, 143, 149, 0.4);
}

.btn-delete {
    background: linear-gradient(135deg, #e53e3e 0%, #fc8181 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(229, 62, 62, 0.3);
}

.btn-delete:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 62, 62, 0.4);
}

.search-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #1a202c;
    border: 1px solid #2d3748;
    border-radius: 8px;
    padding: 0.5rem 1rem;
}

.search-container i {
    color: #a0aec0;
}

.search-input {
    background: transparent;
    border: none;
    color: #e2e8f0;
    outline: none;
    width: 200px;
    font-size: 0.9rem;
}

.search-input::placeholder {
    color: #4a5568;
}

/* Content Header */
.content-header {
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.content-header h1 {
    color: #e2e8f0;
    font-size: 2rem;
    font-weight: 700;
}

/* Кнопка создания клиента */
.btn-create-client {
    background: linear-gradient(135deg, #498f95 0%, #5ba5ab 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(73, 143, 149, 0.3);
}

.btn-create-client:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(73, 143, 149, 0.4);
}

.btn-create-client i {
    font-size: 1rem;
}

/* Statistics Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: #1a202c;
    border: 1px solid #2d3748;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: #498f95;
    box-shadow: 0 4px 12px rgba(73, 143, 149, 0.2);
    transform: translateY(-2px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: #2d3748;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #a0aec0;
}

.stat-icon.active {
    background: #498f95;
    color: #e2e8f0;
}

.stat-icon.inactive {
    background: #4a5568;
    color: #a0aec0;
}

.stat-info {
    flex: 1;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.9rem;
    color: #a0aec0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.stat-change {
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
}

.stat-change-value {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 600;
}

.stat-change-label {
    color: #718096;
    font-size: 0.75rem;
}

.stat-icon.package-crm {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.stat-icon.package-6months {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.stat-icon.package-12months {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

/* Server Monitoring Section */
.server-monitoring-section {
    background: #1a202c;
    border: 1px solid #2d3748;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.server-monitoring-section:hover {
    border-color: #498f95;
    box-shadow: 0 4px 12px rgba(73, 143, 149, 0.1);
}

.server-monitoring-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.server-monitoring-section .section-title {
    color: #e2e8f0;
    font-size: 1.3rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.server-monitoring-section .section-title i {
    color: #498f95;
}

.server-status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #a0aec0;
}

.server-status-indicator i {
    font-size: 0.6rem;
    color: #68d391;
    animation: pulse 2s infinite;
}

.server-status-indicator.updating i {
    color: #fbbf24;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

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

.server-stat-card {
    background: #2d3748;
    border: 1px solid #4a5568;
    border-radius: 10px;
    padding: 1.25rem;
    transition: all 0.3s ease;
}

.server-stat-card:hover {
    border-color: #498f95;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(73, 143, 149, 0.15);
}

.server-stat-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: #a0aec0;
    font-size: 0.9rem;
    font-weight: 500;
}

.server-stat-header i {
    color: #498f95;
    font-size: 1.1rem;
}

.server-stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.server-stat-details {
    font-size: 0.85rem;
    color: #718096;
    margin-bottom: 0.75rem;
}

.server-progress-bar {
    width: 100%;
    height: 8px;
    background: #1a202c;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.server-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #498f95 0%, #5fb3c3 100%);
    border-radius: 4px;
    transition: width 0.5s ease, background 0.3s ease;
    position: relative;
}

.server-progress-fill.low {
    background: linear-gradient(90deg, #68d391 0%, #48bb78 100%);
}

.server-progress-fill.medium {
    background: linear-gradient(90deg, #fbbf24 0%, #f59e0b 100%);
}

.server-progress-fill.high {
    background: linear-gradient(90deg, #fc8181 0%, #f56565 100%);
}

.server-additional-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #2d3748;
}

.server-info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #a0aec0;
}

.server-info-item i {
    color: #498f95;
    width: 16px;
}

.server-info-item span:last-child {
    color: #e2e8f0;
    font-weight: 500;
}

/* Section Title */
.section-title {
    color: #e2e8f0;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0;
}

.section-header-inline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.section-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.progress-summary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(72, 187, 120, 0.1);
    border: 1px solid rgba(72, 187, 120, 0.3);
    border-radius: 8px;
    color: #68d391;
    font-size: 0.9rem;
}

.progress-summary #progressCount {
    font-weight: 700;
    font-size: 1.1rem;
}

.btn-toggle-progress {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #2d3748;
    color: #e2e8f0;
    border: 1px solid #4a5568;
    border-radius: 8px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-toggle-progress:hover {
    background: #3d4758;
    border-color: #68d391;
}

.btn-toggle-progress i {
    font-size: 0.75rem;
}

.btn-init-steps {
    background: linear-gradient(135deg, #498f95 0%, #5ba5ab 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(73, 143, 149, 0.3);
}

.btn-init-steps:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(73, 143, 149, 0.4);
}

.btn-init-steps:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.section-header {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.view-toggle {
    display: flex;
    gap: 0.5rem;
    background: #2d3748;
    border-radius: 8px;
    padding: 4px;
}

.view-toggle-btn {
    background: transparent;
    border: none;
    color: #a0aec0;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-toggle-btn:hover {
    background: #374151;
    color: #e2e8f0;
}

.view-toggle-btn.active {
    background: #498f95;
    color: white;
}

.filters-container {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.search-box {
    position: relative;
    flex: 1;
    min-width: 250px;
    max-width: 400px;
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
    pointer-events: none;
}

.search-box input {
    width: 100%;
    background: #1a202c;
    border: 1px solid #2d3748;
    border-radius: 8px;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    color: #e2e8f0;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: #498f95;
    box-shadow: 0 0 0 3px rgba(73, 143, 149, 0.1);
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.filter-group label {
    color: #a0aec0;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
}

.filter-group select {
    background: #1a202c;
    border: 1px solid #2d3748;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: #e2e8f0;
    font-size: 0.95rem;
    min-width: 150px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-group select:focus {
    outline: none;
    border-color: #498f95;
    box-shadow: 0 0 0 3px rgba(73, 143, 149, 0.1);
}

.checkbox-filter {
    display: flex;
    align-items: center;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #a0aec0;
    font-size: 0.9rem;
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #498f95;
}

.checkbox-label:hover {
    color: #e2e8f0;
}

/* Clients Section */
.clients-section {
    margin-bottom: 2rem;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.client-card {
    background: #1a202c;
    border: 1px solid #2d3748;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    /* Базовый фон будет перезаписан inline стилем */
}

.client-card.active {
    border-color: #498f95;
    /* Фон будет установлен через inline стиль на основе прогресса */
}

.client-card.active:hover {
    border-color: #498f95;
    box-shadow: 0 4px 12px rgba(73, 143, 149, 0.3);
    transform: translateY(-4px);
    opacity: 1;
}

.client-card.inactive {
    border-color: #4a5568;
    opacity: 0.7;
    /* Фон будет установлен через inline стиль */
}

.client-card.inactive:hover {
    border-color: #4a5568;
    box-shadow: 0 4px 12px rgba(74, 85, 104, 0.2);
    transform: translateY(-2px);
    opacity: 0.9;
}

.client-card.inactive .client-name,
.client-card.inactive .client-package-badge {
    color: #718096;
}

.client-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #2d3748;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    color: #a0aec0;
    overflow: hidden;
}

.client-avatar.has-logo {
    background: #1a202c;
    border: 2px solid #4a5568;
}

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

.client-name {
    color: #e2e8f0;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.client-package-badge {
    color: #498f95;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.no-clients {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: #a0aec0;
    font-size: 1.1rem;
}

.client-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.client-progress-container {
    margin-top: 1rem;
}

.client-progress-label {
    color: #a0aec0;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    text-align: left;
}

.client-progress-bar-small {
    width: 100%;
    height: 6px;
    background: #2d3748;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.client-progress-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.client-progress-text {
    color: #a0aec0;
    font-size: 0.8rem;
    font-weight: 500;
}

.client-card.inactive .client-progress-text {
    color: #718096;
}

/* Шаги трека на карточке */
.client-steps-container {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(74, 85, 104, 0.3);
}

.client-steps-label {
    color: #a0aec0;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    text-align: left;
}

.client-steps-progress {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.client-steps-bar {
    flex: 1;
    height: 6px;
    background: #2d3748;
    border-radius: 3px;
    overflow: hidden;
}

.client-steps-fill {
    height: 100%;
    background: linear-gradient(90deg, #498f95 0%, #5ba5ab 100%);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.client-steps-text {
    color: #a0aec0;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    min-width: 50px;
}

/* Рекламные компании на карточке */
.client-campaigns-container {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(74, 85, 104, 0.3);
}

.client-campaigns-container.clickable {
    cursor: pointer;
    border-radius: 8px;
    padding: 8px;
    margin: 0.5rem -8px -8px -8px;
    transition: all 0.2s ease;
}

.client-campaigns-container.clickable:hover {
    background: rgba(128, 90, 213, 0.15);
}

.client-campaigns-header-mini {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.pending-badge {
    background: rgba(246, 173, 85, 0.2);
    color: #f6ad55;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 600;
}

.configured-badge {
    background: rgba(72, 187, 120, 0.2);
    color: #48bb78;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
}

.client-campaigns-pending {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #f6ad55;
    font-size: 0.75rem;
}

.client-campaigns-pending i {
    font-size: 0.7rem;
}

.client-campaigns-label {
    color: #a0aec0;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    text-align: left;
}

/* Row view pending styles */
.pending-mini {
    background: #f6ad55;
    color: #1a202c;
    padding: 1px 5px;
    border-radius: 8px;
    font-size: 0.6rem;
    font-weight: 700;
    margin-left: 4px;
}

.pending-text {
    color: #f6ad55 !important;
}

.client-row-progress-item.clickable {
    cursor: pointer;
    padding: 4px 8px;
    margin: -4px -8px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.client-row-progress-item.clickable:hover {
    background: rgba(128, 90, 213, 0.15);
}

.client-campaigns-progress {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.client-campaigns-bar {
    width: 100%;
    height: 6px;
    background: #2d3748;
    border-radius: 3px;
    overflow: hidden;
}

.client-campaigns-fill {
    height: 100%;
    background: linear-gradient(90deg, #f6ad55 0%, #ed8936 100%);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.client-campaigns-text {
    color: #a0aec0;
    font-size: 0.75rem;
    font-weight: 500;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.client-campaigns-planned {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #f6ad55;
    font-size: 0.75rem;
    font-weight: 500;
    text-align: left;
}

.client-campaigns-planned i {
    font-size: 0.85rem;
}

/* Строчный вид клиентов */
.clients-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.client-row {
    background: #1a202c;
    border: 1px solid #2d3748;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.client-row:hover {
    border-color: #498f95;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(73, 143, 149, 0.2);
}

.client-row.inactive {
    opacity: 0.6;
}

.client-row-main {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 250px;
}

.client-row-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #498f95 0%, #5ba5ab 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
    overflow: hidden;
}

.client-row-avatar.has-logo {
    background: #1a202c;
    border: 2px solid #4a5568;
}

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

.client-row-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.client-row-name {
    color: #e2e8f0;
    font-size: 1.1rem;
    font-weight: 600;
}

.client-row-package {
    color: #498f95;
    font-size: 0.85rem;
    font-weight: 500;
}

.client-row-city {
    color: #a0aec0;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.client-row-progress {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
    max-width: 600px;
}

.client-row-progress-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.client-row-progress-label {
    color: #a0aec0;
    font-size: 0.75rem;
    font-weight: 500;
    min-width: 80px;
    text-align: left;
}

.client-row-progress-bar {
    flex: 1;
    height: 6px;
    background: #2d3748;
    border-radius: 3px;
    overflow: hidden;
}

.client-row-progress-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.client-row-progress-fill.steps {
    background: linear-gradient(90deg, #498f95 0%, #5ba5ab 100%);
}

.client-row-progress-fill.campaigns {
    background: linear-gradient(90deg, #8b5cf6 0%, #a855f7 100%);
}

.client-row-progress-text {
    color: #a0aec0;
    font-size: 0.8rem;
    font-weight: 500;
    min-width: 100px;
    text-align: right;
}

.client-row-progress-text.planned {
    color: #498f95;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Если есть и активная, и запланированная акция */
.client-row-progress-item:has(.client-row-progress-bar) + .client-row-progress-item:has(.client-row-progress-text.planned) {
    margin-top: 0.5rem;
}

.detail-bar {
    height: 8px;
    background: #2d3748;
    border-radius: 4px;
}

.detail-bar.short {
    width: 60%;
    margin: 0 auto;
}

.detail-bar.long {
    width: 85%;
    margin: 0 auto;
}


/* Client Overview */
.client-overview {
    background: #1a202c;
    border: 1px solid #2d3748;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.client-header {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.client-avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    background: #2d3748;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #a0aec0;
    flex-shrink: 0;
}

.client-info {
    flex: 1;
}

.client-title {
    color: #e2e8f0;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Предупреждение о дубликатах */
.duplicates-warning {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(245, 158, 11, 0.1));
    border: 1px solid rgba(251, 191, 36, 0.4);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #fbbf24;
    font-size: 0.9rem;
}

.duplicates-warning i {
    font-size: 1.1rem;
}

.duplicates-warning .duplicates-details-btn {
    margin-left: auto;
    background: rgba(251, 191, 36, 0.2);
    border: 1px solid rgba(251, 191, 36, 0.5);
    color: #fbbf24;
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.duplicates-warning .duplicates-details-btn:hover {
    background: rgba(251, 191, 36, 0.3);
}

.client-details-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #a0aec0;
    font-size: 0.95rem;
}

.detail-item i {
    color: #498f95;
    width: 20px;
    text-align: center;
}

.detail-item span {
    color: #e2e8f0;
}

.client-info-lines {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.info-line {
    height: 12px;
    background: #2d3748;
    border-radius: 6px;
}

.info-line.short {
    width: 40%;
}

.info-line.medium {
    width: 60%;
}

.info-line.long {
    width: 100%;
}

.client-progress-bar {
    width: 100%;
    height: 8px;
    background: #2d3748;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #498f95 0%, #5ba5ab 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-info {
    margin-top: 0.5rem;
}

.progress-info span {
    color: #a0aec0;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Progress Section */
.progress-section {
    background: #1a202c;
    border: 1px solid #2d3748;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.progress-timeline {
    display: flex;
    gap: 2rem;
}

.progress-timeline.collapsed .timeline-vertical,
.progress-timeline.collapsed .timeline-content {
    display: none;
}

.timeline-vertical {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.timeline-line {
    position: absolute;
    width: 2px;
    height: 100%;
    background: #2d3748;
    top: 20px;
}

.timeline-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #2d3748;
    border: 3px solid #1a202c;
    position: relative;
    z-index: 1;
    margin-bottom: 2rem;
}

.timeline-dot.active {
    background: #498f95;
    border-color: #498f95;
}

.timeline-dot:last-child {
    margin-bottom: 0;
}

.timeline-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.timeline-item-content {
    padding-top: 0.5rem;
}

.content-placeholder {
    height: 40px;
    background: #2d3748;
    border-radius: 8px;
    width: 100%;
}

.no-steps {
    color: #a0aec0;
    font-size: 0.95rem;
    text-align: center;
    padding: 2rem;
    font-style: italic;
}

/* Форма для шага 6 - данные CRM */
.step6-credentials-form {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(73, 143, 149, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(73, 143, 149, 0.3);
}

.step6-credentials-form .form-group {
    margin-bottom: 1rem;
    position: relative;
}

.step6-credentials-form .form-group:last-child {
    margin-bottom: 0.5rem;
}

.step6-credentials-form label {
    display: block;
    color: #e2e8f0;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.step6-credentials-form .form-input {
    width: 100%;
    padding: 0.75rem;
    background: #2d3748;
    border: 1px solid #4a5568;
    border-radius: 6px;
    color: #e2e8f0;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.step6-credentials-form .form-input:focus {
    outline: none;
    border-color: #498f95;
    box-shadow: 0 0 0 3px rgba(73, 143, 149, 0.2);
}

.step6-credentials-form .form-input::placeholder {
    color: #718096;
}

.step6-credentials-form .form-group {
    position: relative;
}

.toggle-password-btn {
    position: absolute;
    right: 10px;
    top: 38px;
    background: transparent;
    border: none;
    color: #a0aec0;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.toggle-password-btn:hover {
    color: #498f95;
}

.form-note {
    font-size: 0.85rem;
    color: #a0aec0;
    font-style: italic;
    margin-top: 0.5rem;
}

/* Отображение данных для завершенного шага 6 */
.step6-credentials-display {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(72, 187, 120, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(72, 187, 120, 0.3);
}

.credential-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    color: #e2e8f0;
    font-size: 0.9rem;
}

.credential-item:last-child {
    margin-bottom: 0;
}

.credential-item strong {
    color: #cbd5e0;
    min-width: 100px;
}

.credential-item span {
    color: #e2e8f0;
}

.password-masked {
    font-family: monospace;
    letter-spacing: 2px;
}

.show-password-btn {
    background: transparent;
    border: 1px solid #498f95;
    color: #498f95;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
    cursor: pointer;
    margin-left: 0.5rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.show-password-btn:hover {
    background: rgba(73, 143, 149, 0.2);
}

.credential-item a {
    color: #498f95;
    text-decoration: none;
    transition: color 0.3s ease;
}

.credential-item a:hover {
    color: #5ba5ab;
    text-decoration: underline;
}

/* Блок со ссылкой на CRM для шага 7 */
.step7-crm-link {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(73, 143, 149, 0.15);
    border-radius: 8px;
    border: 1px solid rgba(73, 143, 149, 0.4);
}

.step7-crm-link.step7-warning {
    background: rgba(246, 173, 85, 0.15);
    border-color: rgba(246, 173, 85, 0.4);
    color: #f6ad55;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
}

.step7-crm-link.step7-warning i {
    font-size: 1.1rem;
}

.crm-link-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #e2e8f0;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.crm-link-header i {
    color: #498f95;
}

.crm-link-container {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.crm-link-input {
    flex: 1;
    padding: 0.75rem;
    background: #2d3748;
    border: 1px solid #4a5568;
    border-radius: 6px;
    color: #e2e8f0;
    font-size: 0.9rem;
    font-family: monospace;
    cursor: text;
    transition: all 0.3s ease;
}

.crm-link-input:focus {
    outline: none;
    border-color: #498f95;
    box-shadow: 0 0 0 3px rgba(73, 143, 149, 0.2);
}

.copy-link-btn {
    background: linear-gradient(135deg, #498f95 0%, #5ba5ab 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(73, 143, 149, 0.3);
    white-space: nowrap;
}

.copy-link-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(73, 143, 149, 0.4);
}

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

.copy-link-btn.copied {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    box-shadow: 0 2px 8px rgba(72, 187, 120, 0.3);
}

.copy-link-btn i {
    font-size: 0.9rem;
}

.crm-link-note {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #a0aec0;
    font-size: 0.85rem;
    font-style: italic;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(73, 143, 149, 0.2);
}

.crm-link-note i {
    color: #498f95;
    font-size: 0.9rem;
}

/* Секция акций */
.campaigns-section {
    background: #1a202c;
    border: 1px solid #2d3748;
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
}

.btn-create-campaign {
    background: linear-gradient(135deg, #498f95 0%, #5ba5ab 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(73, 143, 149, 0.3);
}

.btn-create-campaign:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(73, 143, 149, 0.4);
}

/* Кнопки управления кампаниями */
.campaigns-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Кнопка создания брендинга */
.btn-create-branding {
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.3);
}

.btn-create-branding:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4);
}

/* Модальное окно брендинга */
.modal-header-branding {
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
}

.branding-info-box {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 12px;
    margin-bottom: 24px;
}

.branding-info-box i {
    font-size: 1.5rem;
    color: #7c3aed;
}

.branding-info-box strong {
    display: block;
    margin-bottom: 4px;
    color: #7c3aed;
}

.branding-info-box p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.btn-branding {
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%) !important;
}

.btn-branding:hover {
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4) !important;
}

.form-hint {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 8px;
}

.form-hint i {
    margin-right: 4px;
}

.campaigns-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.no-campaigns {
    color: #a0aec0;
    font-size: 0.95rem;
    text-align: center;
    padding: 2rem;
    font-style: italic;
    grid-column: 1 / -1;
}

.campaign-card {
    background: #2d3748;
    border: 1px solid #4a5568;
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    overflow: hidden;
    max-width: 100%;
}

.campaign-card.clickable {
    cursor: pointer;
}

.campaign-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.campaign-card.clickable:hover {
    border-color: #805ad5;
}

.campaign-card.status-planned {
    border-left: 4px solid #f6ad55;
}

.campaign-card.status-active {
    border-left: 4px solid #48bb78;
}

.campaign-card.status-completed {
    border-left: 4px solid #a0aec0;
}

.campaign-card.status-pending {
    border-left: 4px solid #718096;
    background: #252d3d;
}

.campaign-card.campaign-extra {
    border-right: 3px solid #805ad5;
}

.campaign-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

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

.btn-edit-campaign {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: none;
    background: #4a5568;
    color: #e2e8f0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-edit-campaign:hover {
    background: #805ad5;
}

.campaign-extra-badge {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(128, 90, 213, 0.2);
    color: #b794f4;
    font-size: 0.7rem;
    border-radius: 4px;
    margin-left: 8px;
}

.campaign-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: #718096;
    cursor: pointer;
}

.campaign-empty i {
    font-size: 2rem;
    margin-bottom: 8px;
    color: #4a5568;
}

.campaign-empty span {
    font-size: 0.9rem;
}

.status-pending {
    background: #4a5568 !important;
    color: #a0aec0 !important;
}

/* Предупреждение в модальном окне создания акции */
.campaign-warning {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: rgba(246, 173, 85, 0.1);
    border: 1px solid rgba(246, 173, 85, 0.3);
    border-radius: 12px;
    margin-bottom: 24px;
}

.campaign-warning > i {
    font-size: 1.5rem;
    color: #f6ad55;
    flex-shrink: 0;
}

.campaign-warning strong {
    color: #f6ad55;
    display: block;
    margin-bottom: 8px;
}

.campaign-warning p {
    color: #a0aec0;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

.campaign-warning p + p {
    margin-top: 8px;
}

.campaign-title {
    flex: 1;
}

.campaign-title h3 {
    color: #e2e8f0;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.campaign-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.campaign-status.status-planned {
    background: rgba(246, 173, 85, 0.2);
    color: #f6ad55;
}

.campaign-status.status-active {
    background: rgba(72, 187, 120, 0.2);
    color: #48bb78;
}

.campaign-status.status-completed {
    background: rgba(160, 174, 192, 0.2);
    color: #a0aec0;
}

.campaign-dates {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.date-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #cbd5e0;
    font-size: 0.9rem;
}

.date-item i {
    color: #498f95;
    width: 16px;
}

.date-label {
    font-weight: 500;
    min-width: 80px;
}

.date-value {
    color: #e2e8f0;
    font-weight: 600;
}

.date-item.days-until {
    color: #f6ad55;
    font-weight: 600;
}

.date-item.days-until i {
    color: #f6ad55;
}

.campaign-progress {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #4a5568;
}

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

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #498f95 0%, #5ba5ab 100%);
    transition: width 0.3s ease;
}

.progress-text {
    color: #a0aec0;
    font-size: 0.85rem;
    font-weight: 600;
    min-width: 45px;
    text-align: right;
}

.track-step-card {
    background: #2d3748;
    border: 1px solid #4a5568;
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.track-step-card.completed {
    border-color: #48bb78;
    background: rgba(72, 187, 120, 0.1);
}

.track-step-card.in-progress {
    border-color: #f6ad55;
    background: rgba(246, 173, 85, 0.1);
}

.track-step-card.pending {
    border-color: #4a5568;
}

.track-step-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.track-step-number {
    background: #498f95;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.track-step-card.completed .track-step-number {
    background: #48bb78;
}

.track-step-checkbox {
    position: relative;
}

.track-step-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #498f95;
}

.track-step-title {
    color: #e2e8f0;
    font-weight: 600;
    font-size: 1rem;
    flex: 1;
}

.track-step-card.completed .track-step-title {
    text-decoration: line-through;
    opacity: 0.7;
}

.track-step-description {
    color: #a0aec0;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    font-style: italic;
}

.track-step-status {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.status-pending {
    background: #2d3748;
    color: #a0aec0;
}

.status-badge.status-in_progress {
    background: rgba(246, 173, 85, 0.2);
    color: #f6ad55;
}

.status-badge.status-completed {
    background: rgba(72, 187, 120, 0.2);
    color: #48bb78;
}

.status-badge.status-skipped {
    background: #4a5568;
    color: #718096;
}

.completed-date {
    color: #718096;
    font-size: 0.8rem;
}

/* Client Details Section */
.client-details-section {
    background: #1a202c;
    border: 1px solid #2d3748;
    border-radius: 12px;
    padding: 2rem;
}

.details-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.detail-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #2d3748;
}

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

.detail-row.full-width {
    grid-template-columns: 1fr;
    flex-direction: column;
}

.detail-label {
    color: #a0aec0;
    font-weight: 600;
    font-size: 0.95rem;
}

.detail-value {
    color: #e2e8f0;
    font-size: 0.95rem;
}

/* ==================== */
/* MOBILE RESPONSIVE    */
/* ==================== */

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1001;
    background: linear-gradient(135deg, #498f95 0%, #5ba5ab 100%);
    color: white;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(73, 143, 149, 0.4);
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    transform: scale(1.05);
}

.mobile-menu-toggle i {
    font-size: 1.4rem;
}

/* Mobile Overlay */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-overlay.active {
    opacity: 1;
}

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .filters-container {
        gap: 1rem;
    }
    
    .search-box {
        max-width: 300px;
    }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    /* Show mobile menu button */
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .mobile-overlay {
        display: block;
        pointer-events: none;
    }
    
    .mobile-overlay.active {
        pointer-events: auto;
    }
    
    /* Sidebar transforms to slide-out menu */
    .sidebar {
        position: fixed;
        left: -300px;
        top: 0;
        width: 280px;
        height: 100vh;
        z-index: 1000;
        transition: left 0.3s ease;
        overflow-y: auto;
    }
    
    .sidebar.open {
        left: 0;
    }
    
    /* Main content adjustments */
    .main-content {
        margin-left: 0;
        padding: 1rem;
        padding-top: 5rem; /* Space for mobile menu button */
    }
    
    /* Content Header */
    .content-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .content-header h1 {
        font-size: 1.5rem;
        text-align: center;
    }
    
    .btn-create-client {
        width: 100%;
        justify-content: center;
    }
    
    /* Statistics Grid */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    .stat-change {
        font-size: 0.7rem;
        flex-direction: column;
        gap: 0.25rem;
    }
    
    /* Filters */
    .filters-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .search-box {
        max-width: 100%;
        min-width: auto;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .filter-group select {
        width: 100%;
    }
    
    .section-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .section-title {
        text-align: center;
        font-size: 1.2rem;
    }
    
    .view-toggle {
        justify-content: center;
    }
    
    /* Clients Grid */
    .clients-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .client-card {
        padding: 1.25rem;
    }
    
    .client-avatar {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .client-name {
        font-size: 1rem;
    }
    
    /* Clients List View */
    .clients-list {
        gap: 0.75rem;
    }
    
    .client-row {
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
    }
    
    .client-row-main {
        width: 100%;
        min-width: auto;
    }
    
    .client-row-progress {
        width: 100%;
        max-width: 100%;
    }
    
    .client-row-progress-item {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .client-row-progress-label {
        min-width: 60px;
        font-size: 0.7rem;
    }
    
    .client-row-progress-text {
        min-width: auto;
        font-size: 0.75rem;
        text-align: left;
    }
    
    /* Top Bar (client page) */
    .top-bar {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .top-bar h1 {
        font-size: 1.3rem;
    }
    
    .top-bar-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .btn-edit, .btn-delete {
        width: 100%;
        justify-content: center;
    }
    
    /* Client Overview */
    .client-overview {
        padding: 1.25rem;
    }
    
    .client-header {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
        text-align: center;
    }
    
    .client-avatar-large {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
    
    .client-title {
        font-size: 1.5rem;
    }
    
    .client-details-info {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .detail-item {
        justify-content: center;
        font-size: 0.85rem;
    }
    
    /* Progress Section */
    .progress-section {
        padding: 1.25rem;
    }
    
    .section-header-inline {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .section-header-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .section-header-right {
        flex-direction: column;
        gap: 8px;
    }
    
    .progress-summary {
        width: 100%;
        justify-content: center;
    }
    
    .btn-toggle-progress,
    .btn-init-steps {
        width: 100%;
        justify-content: center;
    }
    
    .progress-timeline {
        flex-direction: column;
        gap: 1rem;
    }
    
    .timeline-vertical {
        display: none;
    }
    
    .timeline-content {
        gap: 1rem;
    }
    
    .track-step-card {
        padding: 1rem;
    }
    
    .track-step-header {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    
    .track-step-title {
        font-size: 0.9rem;
        flex: 1 1 100%;
        order: 3;
        margin-top: 0.5rem;
    }
    
    .track-step-status {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    /* Step 6 Form */
    .step6-credentials-form {
        padding: 0.75rem;
    }
    
    .step6-credentials-form .form-group {
        margin-bottom: 0.75rem;
    }
    
    .toggle-password-btn {
        top: 34px;
        right: 8px;
        padding: 0.25rem;
    }
    
    /* Step 7 CRM Link */
    .crm-link-container {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .copy-link-btn {
        width: 100%;
        justify-content: center;
    }
    
    .crm-link-input {
        font-size: 0.8rem;
    }
    
    /* Campaigns Section */
    .campaigns-section {
        padding: 1.25rem;
    }
    
    .campaigns-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-create-campaign,
    .btn-create-branding {
        width: 100%;
        justify-content: center;
    }
    
    .campaigns-list {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .campaign-card {
        padding: 1rem;
    }
    
    .campaign-header {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    
    .campaign-dates {
        gap: 0.5rem;
    }
    
    .date-item {
        font-size: 0.8rem;
    }
    
    .date-label {
        min-width: 70px;
    }
    
    /* Client Details Section */
    .client-details-section {
        padding: 1.25rem;
    }
    
    .detail-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .detail-label {
        font-size: 0.85rem;
    }
    
    .detail-value {
        font-size: 0.9rem;
    }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    .main-content {
        padding: 0.75rem;
        padding-top: 4.5rem;
    }
    
    /* Stats - single column */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .stat-card {
        flex-direction: row;
        text-align: left;
        padding: 1rem;
    }
    
    .stat-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .stat-info {
        flex: 1;
    }
    
    .stat-value {
        font-size: 1.3rem;
    }
    
    .server-stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .server-stat-card {
        padding: 1rem;
    }
    
    .server-stat-value {
        font-size: 2rem;
    }
    
    .server-additional-info {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stat-change {
        flex-direction: row;
    }
    
    /* Client cards */
    .client-card {
        padding: 1rem;
    }
    
    .client-avatar {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }
    
    .client-name {
        font-size: 0.95rem;
    }
    
    .client-package-badge {
        font-size: 0.75rem;
    }
    
    /* Client Overview */
    .client-title {
        font-size: 1.25rem;
    }
    
    .client-avatar-large {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    /* Top bar */
    .top-bar h1 {
        font-size: 1.1rem;
    }
    
    .back-link {
        font-size: 0.8rem;
    }
    
    /* Track steps */
    .track-step-number {
        width: 24px;
        height: 24px;
        font-size: 0.75rem;
    }
    
    .track-step-title {
        font-size: 0.85rem;
    }
    
    .status-badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.5rem;
    }
    
    /* Credential items */
    .credential-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .credential-item strong {
        min-width: auto;
    }
    
    .show-password-btn {
        margin-left: 0;
        margin-top: 0.25rem;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    overflow-y: auto;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
    padding: 2rem;
}

.modal-content {
    background: #1a202c;
    border: 1px solid #2d3748;
    border-radius: 12px;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

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

.modal-header h2 {
    color: #e2e8f0;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-close {
    background: none;
    border: none;
    color: #a0aec0;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #2d3748;
    color: #e2e8f0;
}

.modal-body {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
}

/* Form Styles */
.form-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #2d3748;
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section h3 {
    color: #e2e8f0;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    color: #a0aec0;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: #2d3748;
    border: 1px solid #4a5568;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: #e2e8f0;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    min-height: 44px;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #498f95;
    box-shadow: 0 0 0 3px rgba(73, 143, 149, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #4a5568;
}

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

.form-hint {
    color: #a0aec0;
    font-size: 0.8rem;
    margin-top: 0.4rem;
    display: block;
    line-height: 1.3;
}

/* Обеспечить одинаковую высоту для всех полей формы */
.form-group {
    display: flex;
    flex-direction: column;
    min-height: 80px;
}

.form-group label {
    margin-bottom: 0.5rem;
    flex-shrink: 0;
}

.form-group input,
.form-group select {
    flex-shrink: 0;
}

.form-group .form-hint {
    margin-top: 0.4rem;
    flex-shrink: 0;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #2d3748;
}

.btn-cancel,
.btn-submit {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-cancel {
    background: #2d3748;
    color: #a0aec0;
}

.btn-cancel:hover {
    background: #4a5568;
    color: #e2e8f0;
}

.btn-submit {
    background: linear-gradient(135deg, #498f95 0%, #5ba5ab 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(73, 143, 149, 0.3);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(73, 143, 149, 0.4);
}

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

/* ==================== */
/* MODAL MOBILE STYLES  */
/* ==================== */

@media (max-width: 768px) {
    .modal.active {
        padding: 0;
        align-items: flex-end;
    }
    
    .modal-content {
        max-width: 100%;
        max-height: 95vh;
        border-radius: 16px 16px 0 0;
        margin: 0;
    }
    
    .modal-header {
        padding: 1rem 1.25rem;
        position: sticky;
        top: 0;
        background: #1a202c;
        z-index: 10;
    }
    
    .modal-header h2 {
        font-size: 1.2rem;
    }
    
    .modal-body {
        padding: 1rem 1.25rem;
    }
    
    .form-section {
        margin-bottom: 1.5rem;
        padding-bottom: 1.5rem;
    }
    
    .form-section h3 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .form-group {
        min-height: auto;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Prevents iOS zoom on focus */
    }
    
    .form-actions {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem 0;
        position: sticky;
        bottom: 0;
        background: #1a202c;
        margin: 0;
        border-top: 1px solid #2d3748;
    }
    
    .btn-cancel, .btn-submit {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
    }
    
    .btn-submit {
        order: -1; /* Submit button first on mobile */
    }
}

@media (max-width: 480px) {
    .modal-header h2 {
        font-size: 1rem;
    }
    
    .modal-close {
        width: 28px;
        height: 28px;
        font-size: 1.5rem;
    }
    
    .form-section h3 {
        font-size: 0.95rem;
    }
    
    .form-group label {
        font-size: 0.85rem;
    }
}

/* ==================== Документы клиента ==================== */

.documents-section {
    background: #1a202c;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1rem;
}

.no-documents {
    grid-column: 1 / -1;
    color: #718096;
    text-align: center;
    padding: 2rem;
    font-style: italic;
}

.document-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #2d3748;
    border-radius: 12px;
    padding: 1rem;
    border-left: 4px solid #805ad5;
    transition: all 0.2s ease;
}

.document-card:hover {
    background: #3d4758;
}

.document-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

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

.document-type {
    font-size: 0.75rem;
    color: #a0aec0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.document-name {
    color: #e2e8f0;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.document-meta {
    display: flex;
    gap: 12px;
    font-size: 0.75rem;
    color: #718096;
}

.document-ext {
    background: #4a5568;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

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

.doc-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    text-decoration: none;
}

.doc-btn-view {
    background: #3182ce;
    color: white;
}

.doc-btn-view:hover {
    background: #2c5282;
}

.doc-btn-download {
    background: #38a169;
    color: white;
}

.doc-btn-download:hover {
    background: #2f855a;
}

.doc-btn-delete {
    background: #e53e3e;
    color: white;
}

.doc-btn-delete:hover {
    background: #c53030;
}

/* Кнопки загрузки документов в форме */
.documents-upload-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 1fr;
    gap: 1rem;
}

.document-upload-item {
    position: relative;
    display: flex;
    flex-direction: column;
}

.document-upload-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 1.25rem 1rem;
    background: #2d3748;
    border: 2px dashed #4a5568;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    min-height: 140px;
    height: 100%;
}

.document-upload-btn:hover {
    background: #3d4758;
    border-color: #805ad5;
}

.document-upload-btn i {
    font-size: 1.75rem;
    color: #805ad5;
}

.document-upload-btn span {
    color: #e2e8f0;
    font-weight: 500;
    font-size: 0.9rem;
}

.document-upload-btn small {
    color: #718096;
    font-size: 0.75rem;
}

.document-status {
    text-align: center;
    margin-top: 8px;
    font-size: 0.8rem;
    min-height: 20px;
}

.document-status.uploading {
    color: #ecc94b;
}

.document-status.uploaded {
    color: #48bb78;
}

.document-status.uploaded i {
    margin-right: 4px;
}

/* Кнопка добавления документа */
.btn-add-document {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: linear-gradient(135deg, #805ad5, #6b46c1);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-add-document:hover {
    background: linear-gradient(135deg, #6b46c1, #553c9a);
    transform: translateY(-1px);
}

/* Модальное окно документов */
.modal-documents {
    max-width: 600px;
}

.documents-upload-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.doc-upload-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    background: #2d3748;
    border-radius: 12px;
    border: 2px solid #4a5568;
    transition: all 0.2s ease;
}

.doc-upload-row.has-document {
    border-color: #48bb78;
    background: rgba(72, 187, 120, 0.05);
}

.doc-upload-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

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

.doc-upload-title {
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 4px;
}

.doc-upload-status {
    font-size: 0.85rem;
    color: #718096;
}

.doc-upload-files {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
}

.doc-upload-file {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 10px;
    background: #1a202c;
    border-radius: 6px;
}

.doc-file-name {
    font-size: 0.85rem;
    color: #a0aec0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.doc-file-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.doc-file-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: none;
    background: #4a5568;
    color: #e2e8f0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.doc-file-btn:hover {
    background: #5a6578;
}

.doc-file-btn.delete:hover {
    background: #e53e3e;
}

.doc-upload-action {
    flex-shrink: 0;
}

.btn-upload-doc {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: #4a5568;
    color: #e2e8f0;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-upload-doc:hover {
    background: #5a6578;
}

.doc-upload-row.has-document .btn-upload-doc {
    background: transparent;
    border: 1px solid #4a5568;
}

.doc-upload-row.has-document .btn-upload-doc:hover {
    background: #4a5568;
}

/* Mobile адаптация для документов */
@media (max-width: 768px) {
    .documents-grid {
        grid-template-columns: 1fr;
    }
    
    .documents-upload-grid {
        grid-template-columns: 1fr;
    }
    
    .document-card {
        flex-wrap: wrap;
    }
    
    .document-actions {
        width: 100%;
        justify-content: flex-end;
        margin-top: 8px;
        padding-top: 8px;
        border-top: 1px solid #4a5568;
    }
}

/* ==================== Логотип клиента ==================== */

.client-avatar-large {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 16px;
    background: linear-gradient(135deg, #2d3748, #1a202c);
    border: 2px dashed #4a5568;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.client-avatar-large:hover {
    border-color: #805ad5;
    background: linear-gradient(135deg, #3d4758, #2a303c);
}

.client-avatar-large:hover .avatar-overlay {
    opacity: 1;
}

.client-avatar-large.has-logo {
    border-style: solid;
    border-color: #4a5568;
}

.client-avatar-large.has-logo:hover {
    border-color: #805ad5;
}

.client-avatar-large #clientLogo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #718096;
    text-align: center;
    padding: 10px;
}

.avatar-placeholder i {
    font-size: 2rem;
    color: #805ad5;
}

.avatar-placeholder span {
    font-size: 0.75rem;
    line-height: 1.2;
}

.avatar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    gap: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.client-avatar-large.has-logo .avatar-overlay {
    display: flex;
}

.client-avatar-large.has-logo:hover .avatar-overlay {
    opacity: 1;
}

.avatar-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.avatar-btn i {
    font-size: 1rem;
    color: white;
}

.avatar-btn-change {
    background: #805ad5;
}

.avatar-btn-change:hover {
    background: #6b46c1;
    transform: scale(1.1);
}

.avatar-btn-delete {
    background: #e53e3e;
}

.avatar-btn-delete:hover {
    background: #c53030;
    transform: scale(1.1);
}

/* Mobile адаптация для аватара */
@media (max-width: 768px) {
    .client-avatar-large {
        width: 80px;
        height: 80px;
        border-radius: 12px;
    }
    
    .avatar-placeholder i {
        font-size: 1.5rem;
    }
    
    .avatar-placeholder span {
        font-size: 0.65rem;
    }
    
    .avatar-overlay i {
        font-size: 1.5rem;
    }
}

/* ==================== Расторжение договора ==================== */

/* Кнопка расторжения */
.btn-terminate {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: linear-gradient(135deg, #805ad5, #6b46c1);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-terminate:hover {
    background: linear-gradient(135deg, #6b46c1, #553c9a);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(107, 70, 193, 0.3);
}

.btn-terminate-active {
    background: linear-gradient(135deg, #f56565, #e53e3e);
}

.btn-terminate-active:hover {
    background: linear-gradient(135deg, #e53e3e, #c53030);
    box-shadow: 0 4px 12px rgba(229, 62, 62, 0.3);
}

/* Модальное окно расторжения */
.modal-termination {
    max-width: 550px;
}

.modal-header-warning {
    background: linear-gradient(135deg, #f56565 0%, #c53030 100%);
}

.modal-header-warning h2 {
    color: white;
}

.modal-header-warning .modal-close {
    color: white;
}

.modal-header-warning .modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Информационный блок */
.termination-info {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: rgba(66, 153, 225, 0.1);
    border: 1px solid rgba(66, 153, 225, 0.3);
    border-radius: 12px;
    margin-bottom: 24px;
}

.info-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: rgba(66, 153, 225, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #63b3ed;
    font-size: 1.5rem;
}

.info-icon-success {
    background: rgba(72, 187, 120, 0.2);
    color: #68d391;
}

.info-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 8px;
}

.info-content p {
    font-size: 0.9rem;
    color: #a0aec0;
    margin-bottom: 8px;
    line-height: 1.5;
}

.info-content p:last-child {
    margin-bottom: 0;
}

.info-content .warning {
    color: #f6ad55;
    background: rgba(246, 173, 85, 0.1);
    padding: 8px 12px;
    border-radius: 6px;
    border-left: 3px solid #f6ad55;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Статус активного расторжения */
.termination-active-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: rgba(245, 101, 101, 0.1);
    border: 1px solid rgba(245, 101, 101, 0.3);
    border-radius: 12px;
    text-align: center;
}

.termination-active-icon {
    width: 64px;
    height: 64px;
    background: rgba(245, 101, 101, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fc8181;
    font-size: 2rem;
}

.termination-active-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.termination-active-text strong {
    font-size: 1rem;
    color: #e2e8f0;
}

.termination-active-text span {
    font-size: 1.25rem;
    font-weight: 600;
    color: #fc8181;
}

.btn-cancel-termination {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: transparent;
    color: #a0aec0;
    border: 1px solid #4a5568;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-cancel-termination:hover {
    background: #2d3748;
    border-color: #68d391;
    color: #68d391;
}

/* Форма расторжения */
.termination-form .form-group {
    margin-bottom: 24px;
}

.termination-form .form-hint {
    color: #a0aec0;
    font-size: 0.85rem;
    margin-top: 8px;
}

/* Кнопка подтверждения расторжения */
.btn-danger {
    background: linear-gradient(135deg, #f56565, #c53030) !important;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #e53e3e, #9b2c2c) !important;
    box-shadow: 0 4px 12px rgba(245, 101, 101, 0.3);
}

/* Mobile адаптация для расторжения */
@media (max-width: 768px) {
    .btn-terminate {
        font-size: 0.85rem;
        padding: 8px 14px;
    }
    
    .termination-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .info-content .warning {
        justify-content: center;
    }
}

/* ==================== Продление договора ==================== */

/* Кнопка продления */
.btn-renew {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: linear-gradient(135deg, #38a169, #2f855a);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-renew:hover {
    background: linear-gradient(135deg, #2f855a, #276749);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(56, 161, 105, 0.3);
}

/* Модальное окно продления */
.modal-renew {
    max-width: 550px;
}

.modal-header-success {
    background: linear-gradient(135deg, #38a169 0%, #2f855a 100%);
}

.modal-header-success h2 {
    color: white;
}

.modal-header-success .modal-close {
    color: white;
}

.renew-info {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: rgba(56, 161, 105, 0.1);
    border: 1px solid rgba(56, 161, 105, 0.3);
    border-radius: 8px;
    margin-bottom: 20px;
}

.renew-icon {
    font-size: 2rem;
    color: #38a169;
}

.renew-text ul {
    margin: 10px 0 0 0;
    padding-left: 0;
    list-style: none;
}

.renew-text li {
    padding: 6px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
}

.renew-text li i {
    width: 18px;
    text-align: center;
}

.renew-text .text-success {
    color: #48bb78;
}

.renew-text .text-warning {
    color: #ed8936;
}

.renew-summary {
    padding: 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 20px;
}

.renew-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.renew-summary-label {
    color: var(--text-muted);
}

.renew-summary-value {
    color: var(--text-primary);
    font-weight: 500;
}

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

.btn-success {
    background: linear-gradient(135deg, #38a169, #2f855a) !important;
}

.btn-success:hover {
    background: linear-gradient(135deg, #2f855a, #276749) !important;
    box-shadow: 0 4px 12px rgba(56, 161, 105, 0.3);
}

.text-info {
    color: #4299e1;
}

/* ==================== Выключение кампании ==================== */

.modal-disable {
    max-width: 500px;
}

.disable-info {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: rgba(237, 137, 54, 0.1);
    border: 1px solid rgba(237, 137, 54, 0.3);
    border-radius: 8px;
    margin-bottom: 20px;
}

.disable-icon {
    font-size: 2rem;
    color: #ed8936;
}

.disable-text p {
    margin: 0 0 8px 0;
}

.disable-text .campaign-name-highlight {
    color: #e2e8f0;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 8px 12px;
    background: rgba(128, 90, 213, 0.2);
    border-radius: 6px;
    margin: 8px 0;
}

.disable-text .disable-hint {
    color: #a0aec0;
    font-size: 0.9rem;
}

/* Тумблер выключения кампании */
.campaign-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
    cursor: pointer;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #4a5568;
    border-radius: 24px;
    transition: all 0.3s ease;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.toggle-switch input:checked + .toggle-slider {
    background: #48bb78;
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(20px);
}

.toggle-label {
    font-size: 0.8rem;
    color: #a0aec0;
}

.toggle-label.active {
    color: #48bb78;
}

.toggle-label.inactive {
    color: #f56565;
}

/* Карточка выключенной кампании */
.campaign-card-wrapper.disabled {
    opacity: 0.6;
}

.campaign-card-wrapper.disabled .campaign-card {
    border-color: #718096;
    border-left-color: #718096 !important;
}

.disabled-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(113, 128, 150, 0.3);
    color: #a0aec0;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-left: 8px;
}

.disabled-badge i {
    color: #f56565;
}

/* Причина выключения под карточкой */
.disabled-reason-box {
    margin-top: 8px;
    padding: 12px;
    background: rgba(245, 101, 101, 0.1);
    border: 1px solid rgba(245, 101, 101, 0.3);
    border-radius: 8px;
}

.disabled-reason-box .reason-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    color: #f56565;
    font-size: 0.8rem;
    font-weight: 600;
}

.disabled-reason-box .reason-text {
    color: #e2e8f0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.disabled-reason-box .reason-date {
    margin-top: 8px;
    color: #718096;
    font-size: 0.75rem;
}

/* Строка заголовка карточки */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    overflow: hidden;
    width: 100%;
}

.card-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px;
    flex: 1;
    min-width: 0;
    max-width: 100%;
}

.card-title-row h3 {
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    line-height: 1.3;
}

/* Wrapper для карточки кампании */
.campaign-card-wrapper {
    display: flex;
    flex-direction: column;
}

/* Стили для брендинг-кампании */
.campaign-card-wrapper.branding .campaign-full-card {
    border-left: 4px solid #7c3aed;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.05) 0%, rgba(168, 85, 247, 0.05) 100%);
}

.campaign-full-card.branding-card {
    border-left: 4px solid #7c3aed !important;
}

.campaign-full-card.branding-card .card-number {
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    color: white;
}

.branding-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    color: white;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.branding-badge i {
    font-size: 0.65rem;
}

/* Ярлычки материалов */
.material-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.72rem;
    font-weight: 500;
    border: 1px solid transparent;
    transition: all 0.2s;
}

.material-tag i {
    font-size: 0.7rem;
}

/* Есть материалы - зелёный */
.material-tag.has {
    background: rgba(72, 187, 120, 0.15);
    color: #48bb78;
    border-color: rgba(72, 187, 120, 0.3);
}

/* Нет материалов - серый */
.material-tag.empty {
    background: rgba(107, 114, 128, 0.15);
    color: #9ca3af;
    border-color: rgba(107, 114, 128, 0.3);
}

/* Есть новые на проверку - оранжевый с анимацией */
.material-tag.pending {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    border-color: rgba(245, 158, 11, 0.5);
    animation: pulse-material 2s infinite;
}

.material-tag .pending-count {
    background: #f59e0b;
    color: #1a1a2e;
    padding: 1px 5px;
    border-radius: 8px;
    font-size: 0.65rem;
    font-weight: 700;
}

@keyframes pulse-material {
    0%, 100% { 
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4);
    }
    50% { 
        box-shadow: 0 0 0 4px rgba(245, 158, 11, 0);
    }
}

/* Статус запланированного продления */
.renewal-scheduled-status {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: rgba(66, 153, 225, 0.15);
    border: 1px solid rgba(66, 153, 225, 0.3);
    border-radius: 8px;
    margin-bottom: 20px;
}

.renewal-scheduled-icon {
    font-size: 2rem;
    color: #4299e1;
}

.renewal-scheduled-text {
    flex: 1;
}

.renewal-scheduled-text strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.renewal-scheduled-text span {
    color: #4299e1;
    font-weight: 600;
    font-size: 1.1rem;
}

.btn-cancel-renewal {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #f56565, #e53e3e);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-cancel-renewal:hover {
    background: linear-gradient(135deg, #e53e3e, #c53030);
    transform: translateY(-1px);
}

/* Кнопка продления когда есть запланированное */
.btn-renew.btn-renew-scheduled {
    background: linear-gradient(135deg, #4299e1, #3182ce);
}

.btn-renew.btn-renew-scheduled:hover {
    background: linear-gradient(135deg, #3182ce, #2b6cb0);
    box-shadow: 0 4px 12px rgba(66, 153, 225, 0.3);
}

/* Mobile адаптация для продления */
@media (max-width: 768px) {
    .btn-renew {
        font-size: 0.85rem;
        padding: 8px 14px;
    }
    
    .renew-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .renew-text ul {
        text-align: left;
    }
    
    .renewal-scheduled-status {
        flex-direction: column;
        text-align: center;
    }
}

/* ============================================
   CAMPAIGNS PAGE STYLES
   ============================================ */

.campaigns-page {
    padding: 24px;
}

/* Statistics Cards */
.campaigns-stats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: #2d3748;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid #4a5568;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.stat-total .stat-icon {
    background: rgba(99, 179, 237, 0.2);
    color: #63b3ed;
}

.stat-pending .stat-icon {
    background: rgba(113, 128, 150, 0.2);
    color: #a0aec0;
}

.stat-planned .stat-icon {
    background: rgba(246, 173, 85, 0.2);
    color: #f6ad55;
}

.stat-active .stat-icon {
    background: rgba(72, 187, 120, 0.2);
    color: #48bb78;
}

.stat-completed .stat-icon {
    background: rgba(128, 90, 213, 0.2);
    color: #b794f4;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #e2e8f0;
}

.stat-label {
    font-size: 0.85rem;
    color: #a0aec0;
}

/* Filters */
.campaigns-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
    padding: 20px;
    background: #2d3748;
    border-radius: 12px;
    margin-bottom: 24px;
    border: 1px solid #4a5568;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-group label {
    font-size: 0.8rem;
    color: #a0aec0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-group select {
    background: #1a202c;
    border: 1px solid #4a5568;
    border-radius: 8px;
    padding: 10px 14px;
    color: #e2e8f0;
    min-width: 180px;
    cursor: pointer;
}

.filter-group select:focus {
    border-color: #805ad5;
    outline: none;
}

.btn-reset-filters {
    background: transparent;
    border: 1px solid #4a5568;
    color: #a0aec0;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn-reset-filters:hover {
    background: #4a5568;
    color: #e2e8f0;
}

/* Campaigns List Container */
.campaigns-list-container {
    background: #2d3748;
    border-radius: 12px;
    border: 1px solid #4a5568;
    overflow: hidden;
}

.campaigns-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #4a5568;
}

.campaigns-list-header h2 {
    font-size: 1.1rem;
    color: #e2e8f0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.campaigns-list-header h2 i {
    color: #805ad5;
}

.view-toggle {
    display: flex;
    gap: 4px;
    background: #1a202c;
    padding: 4px;
    border-radius: 8px;
}

.view-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: #a0aec0;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.view-btn:hover {
    background: #4a5568;
    color: #e2e8f0;
}

.view-btn.active {
    background: #805ad5;
    color: white;
}

/* Campaigns Grid */
.campaigns-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 20px;
    padding: 20px;
}

.no-campaigns {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #718096;
}

.no-campaigns i {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.5;
}

.no-campaigns p {
    font-size: 1.1rem;
}

/* Campaign Page Card */
.campaign-page-card {
    background: #1a202c;
    border-radius: 12px;
    border: 1px solid #4a5568;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.campaign-page-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    border-color: #805ad5;
}

.campaign-page-card.status-pending {
    border-left: 4px solid #718096;
}

.campaign-page-card.status-planned {
    border-left: 4px solid #f6ad55;
}

.campaign-page-card.status-active {
    border-left: 4px solid #48bb78;
}

.campaign-page-card.status-completed {
    border-left: 4px solid #b794f4;
}

.campaign-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: rgba(45, 55, 72, 0.5);
    border-bottom: 1px solid #4a5568;
}

.campaign-client {
    display: flex;
    align-items: center;
    gap: 10px;
}

.client-mini-logo {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    object-fit: cover;
}

.client-mini-avatar {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: #4a5568;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a0aec0;
    font-size: 0.9rem;
}

.campaign-client span {
    font-size: 0.9rem;
    color: #e2e8f0;
    font-weight: 500;
}

.campaign-status-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.campaign-status-badge.status-pending {
    background: rgba(113, 128, 150, 0.2);
    color: #a0aec0;
}

.campaign-status-badge.status-planned {
    background: rgba(246, 173, 85, 0.2);
    color: #f6ad55;
}

.campaign-status-badge.status-active {
    background: rgba(72, 187, 120, 0.2);
    color: #48bb78;
}

.campaign-status-badge.status-completed {
    background: rgba(128, 90, 213, 0.2);
    color: #b794f4;
}

.campaign-page-body {
    padding: 20px 16px;
}

.campaign-page-body h3 {
    font-size: 1.1rem;
    color: #e2e8f0;
    margin: 0 0 12px 0;
    font-weight: 600;
}

.campaign-not-configured {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #718096;
    font-size: 0.9rem;
    padding: 12px;
    background: rgba(113, 128, 150, 0.1);
    border-radius: 8px;
}

.campaign-not-configured i {
    color: #f6ad55;
}

.campaign-dates-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.date-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #a0aec0;
}

.date-row i {
    width: 20px;
    color: #718096;
}

.campaign-page-footer {
    display: flex;
    gap: 8px;
    padding: 16px;
    border-top: 1px solid #4a5568;
    background: rgba(45, 55, 72, 0.3);
}

.btn-configure {
    flex: 1;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    background: #805ad5;
    color: white;
}

.btn-configure:hover {
    background: #6b46c1;
}

.btn-view-client {
    padding: 10px 16px;
    border: 1px solid #4a5568;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    background: transparent;
    color: #a0aec0;
    text-decoration: none;
}

.btn-view-client:hover {
    background: #4a5568;
    color: #e2e8f0;
}

/* Campaigns Table */
.campaigns-table-wrapper {
    overflow-x: auto;
}

.campaigns-table {
    width: 100%;
    border-collapse: collapse;
}

.campaigns-table th {
    background: #1a202c;
    padding: 14px 16px;
    text-align: left;
    font-size: 0.8rem;
    color: #a0aec0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #4a5568;
}

.campaigns-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #4a5568;
    color: #e2e8f0;
}

.campaigns-table tbody tr:hover {
    background: rgba(128, 90, 213, 0.1);
}

.campaigns-table tbody tr.disabled-row {
    background: rgba(252, 129, 129, 0.05);
    opacity: 0.8;
}

.campaigns-table tbody tr.disabled-row:hover {
    background: rgba(252, 129, 129, 0.1);
}

.campaign-name-cell a.campaign-disabled {
    color: #a0aec0;
}

.campaign-name-cell .disabled-indicator {
    margin-left: 8px;
    color: #fc8181;
}

.campaign-name-cell .disabled-reason-hint {
    font-size: 0.75rem;
    color: #fc8181;
    margin-top: 4px;
    font-style: italic;
}

/* Индикатор новых файлов от исполнителя */
.new-files-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
    color: #fbbf24;
    animation: bell-shake 1s ease-in-out infinite;
}

@keyframes bell-shake {
    0%, 100% { transform: rotate(0); }
    25% { transform: rotate(10deg); }
    75% { transform: rotate(-10deg); }
}

.new-files-hint {
    font-size: 0.75rem;
    color: #fbbf24;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.new-files-hint i {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Подсветка строки с новыми файлами */
.campaigns-table tbody tr.has-new-files {
    background: rgba(251, 191, 36, 0.05);
}

.campaigns-table tbody tr.has-new-files:hover {
    background: rgba(251, 191, 36, 0.1);
}

/* Подсветка строки с новыми сообщениями */
.campaigns-table tbody tr.has-new-messages {
    background: rgba(139, 92, 246, 0.05);
}

.campaigns-table tbody tr.has-new-messages:hover {
    background: rgba(139, 92, 246, 0.1);
}

.new-messages-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
    color: #8b5cf6;
    animation: message-pulse 1.5s ease-in-out infinite;
}

@keyframes message-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

.new-messages-hint {
    font-size: 0.75rem;
    color: #8b5cf6;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.new-messages-hint i {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Уведомление о новых файлах */
.new-files-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #1a202c, #2d3748);
    border: 3px solid #fbbf24;
    border-radius: 12px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 10px 50px rgba(251, 191, 36, 0.5), 0 0 30px rgba(251, 191, 36, 0.3);
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.4s ease;
}

.new-files-notification.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.new-files-notification i.fa-bell {
    font-size: 1.8rem;
    color: #fbbf24;
    animation: bell-ring 0.5s ease-in-out;
}

@keyframes bell-ring {
    0% { transform: rotate(0); }
    10% { transform: rotate(15deg); }
    20% { transform: rotate(-15deg); }
    30% { transform: rotate(12deg); }
    40% { transform: rotate(-12deg); }
    50% { transform: rotate(8deg); }
    60% { transform: rotate(-8deg); }
    70% { transform: rotate(4deg); }
    80% { transform: rotate(-4deg); }
    90% { transform: rotate(2deg); }
    100% { transform: rotate(0); }
}

.new-files-notification .notification-text {
    color: #e2e8f0;
    font-weight: 600;
    font-size: 1rem;
}

.new-files-notification .notification-link {
    background: #fbbf24;
    color: #1a202c;
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
    margin-left: 8px;
}

.new-files-notification .notification-link:hover {
    background: #f59e0b;
    transform: scale(1.05);
}

.new-files-notification button {
    background: rgba(255,255,255,0.1);
    border: none;
    color: #a0aec0;
    cursor: pointer;
    padding: 6px 10px;
    margin-left: 8px;
    border-radius: 6px;
    transition: all 0.2s;
}

.new-files-notification button:hover {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

/* Уведомление о новых сообщениях от клиентов */
.new-messages-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #1a202c, #2d3748);
    border: 3px solid #8b5cf6;
    border-radius: 12px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 10px 50px rgba(139, 92, 246, 0.5), 0 0 30px rgba(139, 92, 246, 0.3);
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.4s ease;
}

.new-messages-notification.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.new-messages-notification i.fa-comments {
    font-size: 1.8rem;
    color: #8b5cf6;
    animation: message-pulse 1.5s ease-in-out infinite;
}

.new-messages-notification .notification-text {
    color: #e2e8f0;
    font-weight: 600;
    font-size: 1rem;
}

.new-messages-notification button {
    background: rgba(255,255,255,0.1);
    border: none;
    color: #a0aec0;
    cursor: pointer;
    padding: 6px 10px;
    margin-left: 8px;
    border-radius: 6px;
    transition: all 0.2s;
}

.new-messages-notification button:hover {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

.client-link {
    color: #63b3ed;
    text-decoration: none;
    font-weight: 500;
}

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

.not-configured {
    color: #718096;
    font-style: italic;
}

.btn-table-action {
    width: 36px;
    height: 36px;
    border: 1px solid #4a5568;
    background: transparent;
    color: #a0aec0;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-table-action:hover {
    background: #805ad5;
    border-color: #805ad5;
    color: white;
}

/* Campaign Client Info in Modal */
.campaign-client-info {
    margin-bottom: 24px;
}

.client-info-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: rgba(128, 90, 213, 0.1);
    border: 1px solid rgba(128, 90, 213, 0.2);
    border-radius: 12px;
}

.client-modal-logo {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
}

.client-modal-avatar {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: #4a5568;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a0aec0;
    font-size: 1.25rem;
}

.client-info-text {
    flex: 1;
}

.client-info-text h4 {
    margin: 0 0 4px 0;
    color: #e2e8f0;
    font-size: 1.1rem;
}

.client-package {
    font-size: 0.85rem;
    color: #a0aec0;
}

.btn-goto-client {
    width: 40px;
    height: 40px;
    border: 1px solid #4a5568;
    background: transparent;
    color: #a0aec0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-goto-client:hover {
    background: #4a5568;
    color: #e2e8f0;
}

/* Clients Grid for Campaigns Page */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 20px;
    padding: 20px;
}

.no-clients {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #718096;
}

.no-clients i {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.5;
}

/* Client Campaign Card */
.client-campaign-card {
    background: #1a202c;
    border-radius: 12px;
    border: 1px solid #4a5568;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.client-campaign-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    border-color: #805ad5;
}

.client-campaign-card.has-pending {
    border-left: 4px solid #f6ad55;
}

.client-campaign-card.all-configured {
    border-left: 4px solid #48bb78;
}

.client-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: rgba(45, 55, 72, 0.5);
    border-bottom: 1px solid #4a5568;
}

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

.client-logo {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
}

.client-avatar {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: #4a5568;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a0aec0;
    font-size: 1.25rem;
}

.client-details h3 {
    margin: 0 0 4px 0;
    font-size: 1rem;
    color: #e2e8f0;
    font-weight: 600;
}

.client-package {
    font-size: 0.8rem;
    color: #a0aec0;
}

.campaign-counts {
    display: flex;
    gap: 8px;
}

.count-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.count-badge.pending {
    background: rgba(246, 173, 85, 0.2);
    color: #f6ad55;
}

.count-badge.total {
    background: rgba(128, 90, 213, 0.2);
    color: #b794f4;
}

/* Campaigns Preview */
.campaigns-preview {
    padding: 12px 16px;
}

.campaign-mini {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid #2d3748;
}

.campaign-mini:last-child {
    border-bottom: none;
}

.campaign-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.campaign-mini.pending .campaign-dot {
    background: #f6ad55;
}

.campaign-mini.configured .campaign-dot {
    background: #48bb78;
}

.campaign-mini.disabled .campaign-dot {
    background: #fc8181;
}

.campaign-mini.disabled {
    opacity: 0.7;
}

.campaign-mini.disabled .campaign-name {
    text-decoration: line-through;
    color: #a0aec0;
}

.campaign-disabled-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: #fc8181;
    background: rgba(252, 129, 129, 0.15);
    padding: 2px 8px;
    border-radius: 10px;
    white-space: nowrap;
}

/* Индикатор новых файлов в мини-карточке */
.campaign-new-files-badge {
    color: #fbbf24;
    font-size: 0.8rem;
    animation: bell-shake 1s ease-in-out infinite;
}

.campaign-mini.has-new-files {
    background: rgba(251, 191, 36, 0.1);
    border-radius: 4px;
    padding: 8px 4px;
    margin: -8px 0;
}

.campaign-mini.has-new-files .campaign-dot {
    background: #fbbf24 !important;
}

.campaign-name {
    flex: 1;
    font-size: 0.9rem;
    color: #e2e8f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.campaign-date {
    font-size: 0.8rem;
    color: #718096;
}

.campaigns-more {
    padding: 8px 0;
    font-size: 0.85rem;
    color: #805ad5;
    font-weight: 500;
}

/* Client Card Footer */
.client-card-footer {
    padding: 12px 16px;
    background: rgba(45, 55, 72, 0.3);
    border-top: 1px solid #4a5568;
}

.progress-bar {
    height: 6px;
    background: #2d3748;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #805ad5, #48bb78);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.8rem;
    color: #a0aec0;
}

/* Client Campaigns Panel */
.client-campaigns-panel {
    background: #2d3748;
    border-radius: 12px;
    border: 1px solid #4a5568;
    overflow: hidden;
}

.panel-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: rgba(26, 32, 44, 0.5);
    border-bottom: 1px solid #4a5568;
}

.btn-back {
    padding: 10px 16px;
    background: transparent;
    border: 1px solid #4a5568;
    color: #a0aec0;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.btn-back:hover {
    background: #4a5568;
    color: #e2e8f0;
}

.selected-client-name {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
    color: #e2e8f0;
    font-weight: 600;
}

.header-logo {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    object-fit: cover;
}

.header-avatar {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: #4a5568;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a0aec0;
}

/* Campaign Detail Card */
.campaign-detail-card {
    background: #1a202c;
    border-radius: 12px;
    border: 1px solid #4a5568;
    overflow: hidden;
}

.campaign-detail-card.status-pending {
    border-left: 4px solid #718096;
}

.campaign-detail-card.status-planned {
    border-left: 4px solid #f6ad55;
}

.campaign-detail-card.status-active {
    border-left: 4px solid #48bb78;
}

.campaign-detail-card.status-completed {
    border-left: 4px solid #b794f4;
}

.campaign-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: rgba(45, 55, 72, 0.5);
    border-bottom: 1px solid #4a5568;
}

.campaign-detail-header h3 {
    margin: 0;
    font-size: 1rem;
    color: #e2e8f0;
}

.campaign-detail-body {
    padding: 20px 16px;
}

.campaign-detail-footer {
    padding: 16px;
    border-top: 1px solid #4a5568;
    background: rgba(45, 55, 72, 0.3);
}

/* Responsive for Campaigns Page */
@media (max-width: 1200px) {
    .campaigns-stats {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .clients-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }
}

@media (max-width: 768px) {
    .campaigns-page {
        padding: 16px;
    }

    .campaigns-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .campaigns-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group {
        width: 100%;
    }

    .filter-group select {
        width: 100%;
        min-width: unset;
    }

    .campaigns-grid,
    .clients-grid {
        grid-template-columns: 1fr;
    }
    
    .panel-header {
        flex-wrap: wrap;
    }
    
    .selected-client-name {
        width: 100%;
        margin-top: 8px;
    }
}

/* ============================================
   CLIENT CAMPAIGNS PAGE STYLES
   ============================================ */

.back-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2d3748;
    border-radius: 8px;
    color: #a0aec0;
    text-decoration: none;
    margin-right: 12px;
    transition: all 0.2s ease;
}

.back-link:hover {
    background: #4a5568;
    color: #e2e8f0;
}

.btn-header-action {
    padding: 10px 20px;
    background: #2d3748;
    border: 1px solid #4a5568;
    border-radius: 8px;
    color: #e2e8f0;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn-header-action:hover {
    background: #805ad5;
    border-color: #805ad5;
}

/* Client Header */
.client-campaigns-header {
    margin: 24px;
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #4a5568;
}

.client-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.client-header-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.client-header-logo {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
    border: 3px solid #805ad5;
}

.client-header-avatar {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    background: linear-gradient(135deg, #805ad5, #553c9a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.client-header-details h1 {
    margin: 0 0 8px 0;
    font-size: 1.5rem;
    color: #e2e8f0;
}

.client-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: #a0aec0;
}

.meta-item.link {
    color: #63b3ed;
    text-decoration: none;
}

.meta-item.link:hover {
    text-decoration: underline;
}

.client-header-stats {
    display: flex;
    gap: 24px;
}

.header-stat {
    text-align: center;
    padding: 12px 24px;
    background: rgba(26, 32, 44, 0.5);
    border-radius: 12px;
    min-width: 100px;
}

.header-stat .stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #e2e8f0;
}

.header-stat .stat-label {
    font-size: 0.8rem;
    color: #a0aec0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.header-stat.warning .stat-number {
    color: #f6ad55;
}

.header-stat.success .stat-number {
    color: #48bb78;
}

.client-progress-bar {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.progress-track {
    flex: 1;
    height: 8px;
    background: #1a202c;
    border-radius: 4px;
    overflow: hidden;
}

.progress-track .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #805ad5, #48bb78);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.progress-label {
    font-size: 0.9rem;
    color: #a0aec0;
    white-space: nowrap;
}

/* Timeline Container */
.campaigns-timeline-container {
    margin: 0 24px 24px;
    background: #2d3748;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #4a5568;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 16px;
}

.timeline-header h2 {
    margin: 0;
    font-size: 1.1rem;
    color: #e2e8f0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.timeline-header h2 i {
    color: #805ad5;
}

.timeline-legend {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: #a0aec0;
}

.legend-item .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.legend-item .dot.pending { background: #718096; }
.legend-item .dot.planned { background: #f6ad55; }
.legend-item .dot.active { background: #48bb78; }
.legend-item .dot.completed { background: #b794f4; }

/* Timeline Scroll */
.campaigns-timeline {
    overflow-x: auto;
    padding-bottom: 10px;
}

.timeline-scroll {
    display: flex;
    gap: 16px;
    min-width: max-content;
}

.timeline-item {
    flex-shrink: 0;
    width: 200px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.timeline-item:hover {
    transform: translateY(-4px);
}

.timeline-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #4a5568;
    color: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 8px;
}

.timeline-item.pending .timeline-number { background: #718096; }
.timeline-item.planned .timeline-number { background: #f6ad55; color: #1a202c; }
.timeline-item.active .timeline-number { background: #48bb78; color: #1a202c; }
.timeline-item.completed .timeline-number { background: #b794f4; color: #1a202c; }

.timeline-card {
    background: #1a202c;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #4a5568;
}

.timeline-item:hover .timeline-card {
    border-color: #805ad5;
}

.timeline-card-header {
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(45, 55, 72, 0.5);
    border-bottom: 1px solid #4a5568;
}

.timeline-card-header .campaign-name {
    font-size: 0.85rem;
    color: #e2e8f0;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-dot.pending { background: #718096; }
.status-dot.planned { background: #f6ad55; }
.status-dot.active { background: #48bb78; }
.status-dot.completed { background: #b794f4; }

.timeline-card-body {
    padding: 12px;
}

.timeline-card-body.pending {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #718096;
    font-size: 0.8rem;
}

.timeline-card-body .date-range {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.timeline-card-body .date {
    font-size: 0.85rem;
    color: #e2e8f0;
    font-weight: 500;
}

.timeline-card-body .date-range i {
    color: #718096;
    font-size: 0.7rem;
}

.timeline-card-body .duration {
    font-size: 0.75rem;
    color: #a0aec0;
}

/* Campaigns Cards Section */
.campaigns-cards-section {
    margin: 0 24px 24px;
}

.campaigns-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.campaigns-section-header h2 {
    margin: 0;
    font-size: 1.1rem;
    color: #e2e8f0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.campaigns-section-header h2 i {
    color: #805ad5;
}

.campaigns-cards-section h2 {
    margin: 0 0 20px 0;
    font-size: 1.1rem;
    color: #e2e8f0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.campaigns-cards-section h2 i {
    color: #805ad5;
}

/* Warning button style */
.btn-submit.btn-warning {
    background: linear-gradient(135deg, #f6ad55, #dd6b20);
}

.btn-submit.btn-warning:hover {
    background: linear-gradient(135deg, #ed8936, #c05621);
}

.campaigns-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

/* Campaign Full Card */
.campaign-full-card {
    background: #2d3748;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #4a5568;
    display: flex;
    max-width: 100%;
}

.campaign-full-card.pending { border-left: 5px solid #718096; }
.campaign-full-card.planned { border-left: 5px solid #f6ad55; }
.campaign-full-card.active { border-left: 5px solid #48bb78; }
.campaign-full-card.completed { border-left: 5px solid #b794f4; }

.card-number {
    width: 60px;
    background: rgba(26, 32, 44, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #4a5568;
    flex-shrink: 0;
}

.campaign-full-card.pending .card-number { color: #718096; }
.campaign-full-card.planned .card-number { color: #f6ad55; }
.campaign-full-card.active .card-number { color: #48bb78; }
.campaign-full-card.completed .card-number { color: #b794f4; }

.card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
}

.card-header {
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px;
    background: rgba(26, 32, 44, 0.3);
    border-bottom: 1px solid #4a5568;
}

.card-header h3 {
    margin: 0;
    font-size: 1rem;
    color: #e2e8f0;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.pending { background: rgba(113, 128, 150, 0.2); color: #a0aec0; }
.status-badge.planned { background: rgba(246, 173, 85, 0.2); color: #f6ad55; }
.status-badge.active { background: rgba(72, 187, 120, 0.2); color: #48bb78; }
.status-badge.completed { background: rgba(183, 148, 244, 0.2); color: #b794f4; }
.status-badge.disabled { background: rgba(245, 101, 101, 0.2); color: #fc8181; }

.card-body {
    padding: 16px;
    flex: 1;
    overflow: hidden;
    min-width: 0;
}

.pending-notice {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: rgba(246, 173, 85, 0.1);
    border: 1px solid rgba(246, 173, 85, 0.2);
    border-radius: 12px;
}

.pending-notice i {
    font-size: 1.5rem;
    color: #f6ad55;
}

.notice-text strong {
    display: block;
    color: #f6ad55;
    margin-bottom: 4px;
}

.notice-text p {
    margin: 0;
    color: #a0aec0;
    font-size: 0.9rem;
}

.campaign-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    overflow: hidden;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
    overflow: hidden;
}

.info-item > div {
    min-width: 0;
    overflow: hidden;
}

.info-item i {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 8px;
    background: rgba(128, 90, 213, 0.1);
    color: #b794f4;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-item.upcoming i { background: rgba(246, 173, 85, 0.1); color: #f6ad55; }
.info-item.active i { background: rgba(72, 187, 120, 0.1); color: #48bb78; }
.info-item.completed i { background: rgba(183, 148, 244, 0.1); color: #b794f4; }

.campaign-info-grid .info-label {
    display: block;
    font-size: 0.7rem;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.campaign-info-grid .info-value {
    font-size: 0.85rem;
    color: #e2e8f0;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-footer {
    padding: 16px;
    border-top: 1px solid #4a5568;
    background: rgba(26, 32, 44, 0.2);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.card-footer .btn-view-campaign {
    flex: 1;
    min-width: 100px;
}

.card-footer .btn-edit-campaign {
    flex: 1;
    min-width: 100px;
}

.btn-edit-campaign {
    padding: 12px 20px;
    background: #805ad5;
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn-edit-campaign:hover {
    background: #6b46c1;
    transform: translateY(-2px);
}

.btn-rename-campaign {
    width: 40px;
    height: 40px;
    padding: 0;
    background: #2d3748;
    border: 1px solid #4a5568;
    border-radius: 8px;
    color: #a0aec0;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.btn-rename-campaign:hover {
    background: #4a5568;
    border-color: #ed8936;
    color: #ed8936;
}

.btn-duplicate-campaign {
    width: 40px;
    height: 40px;
    padding: 0;
    background: #2d3748;
    border: 1px solid #4a5568;
    border-radius: 8px;
    color: #a0aec0;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.btn-duplicate-campaign:hover {
    background: #4a5568;
    border-color: #38b2ac;
    color: #38b2ac;
}

.btn-duplicate-campaign:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.no-campaigns-message {
    text-align: center;
    padding: 40px;
    color: #718096;
}

.no-campaigns-message i {
    font-size: 2.5rem;
    margin-bottom: 12px;
    opacity: 0.5;
}

/* Responsive */
@media (max-width: 768px) {
    .client-header-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .client-header-stats {
        width: 100%;
        justify-content: space-between;
    }
    
    .header-stat {
        flex: 1;
        min-width: unset;
        padding: 12px;
    }
    
    .campaigns-detail-grid {
        grid-template-columns: 1fr;
    }
    
    .campaign-info-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .campaign-info-grid .info-value {
        font-size: 0.9rem;
    }
}

/* ============================================
   CAMPAIGN DETAIL PAGE STYLES
   ============================================ */

.campaign-detail-page {
    padding: 24px;
}

/* Campaign Overview */
.campaign-overview {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid #4a5568;
}

.overview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.overview-title {
    display: flex;
    align-items: center;
    gap: 16px;
}

.overview-title h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #e2e8f0;
}

.overview-status {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
}

.overview-status.pending {
    background: rgba(113, 128, 150, 0.2);
    color: #a0aec0;
}

.overview-status.planned {
    background: rgba(246, 173, 85, 0.2);
    color: #f6ad55;
}

.overview-status.active {
    background: rgba(72, 187, 120, 0.2);
    color: #48bb78;
}

.overview-status.completed {
    background: rgba(128, 90, 213, 0.2);
    color: #b794f4;
}

.overview-status.disabled {
    background: rgba(245, 101, 101, 0.2);
    color: #fc8181;
}

.overview-days {
    font-size: 1.1rem;
    color: #63b3ed;
    font-weight: 500;
}

.overview-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.overview-stat {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: rgba(26, 32, 44, 0.5);
    border-radius: 12px;
    min-width: 140px;
}

.overview-stat i {
    font-size: 1.25rem;
    color: #805ad5;
    width: 24px;
    text-align: center;
}

.overview-stat .stat-label {
    display: block;
    font-size: 0.75rem;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.overview-stat .stat-value {
    display: block;
    font-size: 1rem;
    color: #e2e8f0;
    font-weight: 500;
}

.overview-stat.link a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #63b3ed;
    text-decoration: none;
    font-weight: 500;
}

.overview-stat.link a:hover {
    color: #90cdf4;
}

/* View Campaign Modal */
.modal-large {
    max-width: 800px;
    width: 95%;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #4a5568;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.btn-view-campaign {
    padding: 10px 16px;
    background: #4a5568;
    border: none;
    border-radius: 8px;
    color: #e2e8f0;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-view-campaign:hover {
    background: #63b3ed;
}

.view-campaign-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.view-section {
    background: #1a202c;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #4a5568;
}

.view-section h3 {
    margin: 0 0 16px 0;
    font-size: 1rem;
    color: #e2e8f0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.view-section h3 i {
    color: #805ad5;
}

.view-header-section {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
}

.view-status {
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.view-status.pending { background: rgba(113, 128, 150, 0.2); color: #a0aec0; }
.view-status.planned { background: rgba(246, 173, 85, 0.2); color: #f6ad55; }
.view-status.active { background: rgba(72, 187, 120, 0.2); color: #48bb78; }
.view-status.completed { background: rgba(128, 90, 213, 0.2); color: #b794f4; }

.view-dates, .view-progress {
    color: #a0aec0;
    font-size: 0.95rem;
}

.view-dates i, .view-progress i {
    margin-right: 6px;
    color: #718096;
}

.view-text-content {
    color: #e2e8f0;
    line-height: 1.7;
    font-size: 0.95rem;
    white-space: pre-wrap;
}

.view-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.view-gallery-item {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #4a5568;
    aspect-ratio: 16/9;
}

.view-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.view-gallery-item img:hover {
    transform: scale(1.02);
}

.view-gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.view-gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #4a5568;
    background: #1a202c;
}

.view-gallery-item.photo-item {
    aspect-ratio: 4/3;
}

.view-gallery-item.video-item {
    aspect-ratio: 16/9;
}

.view-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.view-gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.gallery-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.view-gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-item-overlay.video-overlay {
    top: auto;
    bottom: 0;
    height: 50px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
}

.gallery-item-actions {
    display: flex;
    gap: 12px;
}

.gallery-item-actions a,
.gallery-item-actions button {
    width: 44px;
    height: 44px;
    background: rgba(128, 90, 213, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
}

.gallery-item-actions a:hover,
.gallery-item-actions button:hover {
    background: #805ad5;
    transform: scale(1.15);
}

.video-gallery {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.view-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.view-link {
    padding: 12px 20px;
    background: #4a5568;
    border-radius: 8px;
    color: #e2e8f0;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.view-link:hover {
    background: #718096;
}

.view-link.primary {
    background: linear-gradient(135deg, #805ad5, #553c9a);
}

.view-link.primary:hover {
    background: linear-gradient(135deg, #6b46c1, #44337a);
}

.view-meta-pixel {
    display: flex;
    align-items: center;
    gap: 12px;
}

.view-meta-pixel .label {
    color: #a0aec0;
}

.view-meta-pixel code {
    background: #1a202c;
    border: 1px solid #4a5568;
    padding: 8px 16px;
    border-radius: 6px;
    color: #63b3ed;
    font-family: monospace;
}

.view-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.view-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(113, 128, 150, 0.1);
    border-radius: 8px;
    color: #a0aec0;
}

.view-step i {
    font-size: 1.1rem;
}

.view-step.completed {
    background: rgba(72, 187, 120, 0.1);
    color: #48bb78;
}

.view-step.completed i {
    color: #48bb78;
}

.btn-download-pack {
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn-download-pack:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-delete-campaign {
    padding: 12px 20px;
    background: linear-gradient(135deg, #e53e3e, #c53030);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-delete-campaign:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(229, 62, 62, 0.3);
}

.btn-save-all {
    padding: 12px 24px;
    background: linear-gradient(135deg, #48bb78, #38a169);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn-save-all:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(72, 187, 120, 0.3);
}

.detail-section {
    background: #2d3748;
    border-radius: 16px;
    border: 1px solid #4a5568;
    margin-bottom: 24px;
    overflow: hidden;
}

.detail-section .section-header {
    padding: 20px 24px;
    background: rgba(26, 32, 44, 0.5);
    border-bottom: 1px solid #4a5568;
}

.detail-section .section-header h2 {
    margin: 0;
    font-size: 1.1rem;
    color: #e2e8f0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-section .section-header h2 i {
    color: #805ad5;
}

.detail-section .section-body {
    padding: 24px;
}

/* Creative subsections */
.creative-subsection {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #4a5568;
}

.creative-subsection:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.creative-subsection h3 {
    margin: 0 0 16px 0;
    font-size: 1rem;
    color: #e2e8f0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.creative-subsection h3 i {
    color: #63b3ed;
}

.creative-subsection textarea {
    width: 100%;
    background: #1a202c;
    border: 1px solid #4a5568;
    border-radius: 8px;
    padding: 16px;
    color: #e2e8f0;
    font-size: 0.95rem;
    line-height: 1.6;
    resize: vertical;
}

.creative-subsection textarea:focus {
    border-color: #805ad5;
    outline: none;
}

/* Files grid */
.files-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.file-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #4a5568;
    aspect-ratio: 16/9;
}

.file-card img,
.file-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.btn-delete-file {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.9);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.2s ease;
}

.file-card:hover .btn-delete-file {
    opacity: 1;
}

.btn-delete-file:hover {
    background: #ef4444;
    transform: scale(1.1);
}

/* Название файла под карточкой */
.file-name {
    padding: 8px 10px;
    background: rgba(26, 32, 44, 0.8);
    color: #e2e8f0;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.no-files {
    color: #718096;
    font-size: 0.9rem;
    padding: 20px;
    text-align: center;
    background: rgba(26, 32, 44, 0.5);
    border-radius: 8px;
}

.upload-area {
    display: flex;
    justify-content: center;
}

.btn-upload {
    padding: 12px 24px;
    background: #4a5568;
    border: 2px dashed #718096;
    border-radius: 12px;
    color: #a0aec0;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn-upload:hover {
    background: #2d3748;
    border-color: #805ad5;
    color: #e2e8f0;
}

/* Campaign Track Timeline */
.campaign-track-timeline {
    position: relative;
}

.track-step {
    display: flex;
    gap: 20px;
    margin-bottom: 0;
}

.track-step:last-child .step-line {
    display: none;
}

.step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #4a5568;
    color: #a0aec0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.track-step.completed .step-number {
    background: linear-gradient(135deg, #48bb78, #38a169);
    color: white;
}

.step-line {
    width: 3px;
    flex: 1;
    min-height: 40px;
    background: #4a5568;
    margin: 8px 0;
}

.track-step.completed .step-line {
    background: #48bb78;
}

.step-content {
    flex: 1;
    background: #1a202c;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid #4a5568;
    transition: all 0.3s ease;
}

.track-step.completed .step-content {
    border-color: rgba(72, 187, 120, 0.3);
    background: rgba(72, 187, 120, 0.05);
}

.step-header {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.step-checkbox {
    flex-shrink: 0;
}

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

.step-checkbox label {
    width: 24px;
    height: 24px;
    border: 2px solid #4a5568;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.step-checkbox input:checked + label {
    background: #48bb78;
    border-color: #48bb78;
}

.step-checkbox input:checked + label::after {
    content: '✓';
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.step-info h4 {
    margin: 0 0 4px 0;
    font-size: 1rem;
    color: #e2e8f0;
}

.step-info p {
    margin: 0;
    font-size: 0.85rem;
    color: #a0aec0;
}

.step-status {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #4a5568;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.step-status.pending {
    color: #a0aec0;
}

.step-status.completed {
    color: #48bb78;
}

.step-meta-pixel {
    margin-top: 16px;
    padding: 16px;
    background: rgba(128, 90, 213, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(128, 90, 213, 0.2);
}

.step-meta-pixel label {
    display: block;
    font-size: 0.85rem;
    color: #a0aec0;
    margin-bottom: 8px;
}

.step-meta-pixel input {
    width: 100%;
    background: #1a202c;
    border: 1px solid #4a5568;
    border-radius: 6px;
    padding: 10px 12px;
    color: #e2e8f0;
    font-size: 0.9rem;
}

.step-meta-pixel input:focus {
    border-color: #805ad5;
    outline: none;
}

/* Responsive */
@media (max-width: 768px) {
    .campaign-detail-page {
        padding: 16px;
    }
    
    .files-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .step-header {
        flex-wrap: wrap;
    }
}

/* Clickable campaign card */
.campaign-full-card.clickable {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.campaign-full-card.clickable:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(128, 90, 213, 0.3);
}

.campaign-full-card.clickable .card-content {
    position: relative;
}


/* ==================== Памятки администратора ==================== */

.admin-notes-section {
    background: #1a202c;
    border-radius: 12px;
    padding: 24px;
    margin-top: 24px;
    border: 1px solid #2d3748;
}

.admin-notes-section .section-header-inline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.admin-notes-section .section-title {
    margin: 0;
    font-size: 1.1rem;
    color: #e2e8f0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-notes-section .section-title i {
    color: #fbbf24;
}

.btn-add-note {
    padding: 8px 16px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border: none;
    border-radius: 8px;
    color: #1a202c;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.btn-add-note:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

.notes-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.notes-empty {
    text-align: center;
    padding: 40px 20px;
    color: #718096;
}

.notes-empty i {
    font-size: 2.5rem;
    margin-bottom: 12px;
    opacity: 0.5;
}

.notes-empty p {
    margin: 0 0 4px 0;
    font-size: 1rem;
    color: #a0aec0;
}

.notes-empty span {
    font-size: 0.85rem;
}

.note-card {
    background: #2d3748;
    border: 1px solid #4a5568;
    border-radius: 10px;
    padding: 16px;
    border-left: 4px solid #fbbf24;
}

.note-content {
    color: #e2e8f0;
    font-size: 0.95rem;
    line-height: 1.6;
    white-space: pre-wrap;
}

.note-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #4a5568;
}

.note-date {
    font-size: 0.8rem;
    color: #718096;
    display: flex;
    align-items: center;
    gap: 6px;
}

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

.btn-note-edit,
.btn-note-delete {
    padding: 6px 10px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    background: rgba(255, 255, 255, 0.05);
    color: #a0aec0;
}

.btn-note-edit:hover {
    background: rgba(99, 102, 241, 0.2);
    color: #818cf8;
}

.btn-note-delete:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

/* Модальное окно заметки */
.modal-note {
    max-width: 500px;
}

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

.modal-note .form-group label {
    display: block;
    margin-bottom: 8px;
    color: #e2e8f0;
    font-weight: 500;
}

.modal-note textarea {
    width: 100%;
    background: #2d3748;
    border: 2px solid #4a5568;
    border-radius: 8px;
    padding: 12px;
    color: #e2e8f0;
    font-size: 0.95rem;
    resize: vertical;
    min-height: 120px;
    box-sizing: border-box;
}

.modal-note textarea:focus {
    outline: none;
    border-color: #fbbf24;
}

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

.modal-note .btn-cancel {
    padding: 10px 20px;
    background: #4a5568;
    border: none;
    border-radius: 8px;
    color: #e2e8f0;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-note .btn-cancel:hover {
    background: #5a6578;
}

.modal-note .btn-save {
    padding: 10px 20px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border: none;
    border-radius: 8px;
    color: #1a202c;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.modal-note .btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

/* ==================== Дополнительные контакты ==================== */

/* Секция контактов в карточке клиента */
.contacts-section {
    background: #1a202c;
    border-radius: 12px;
    padding: 24px;
    margin-top: 24px;
    border: 1px solid #2d3748;
}

.contacts-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.contact-card {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #4a5568;
    transition: all 0.3s ease;
    position: relative;
}

.contact-card:hover {
    border-color: #498f95;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(73, 143, 149, 0.2);
}

.contact-card:hover .contact-delete-btn {
    opacity: 1;
}

.contact-delete-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(229, 62, 62, 0.1);
    border: none;
    color: #fc8181;
    cursor: pointer;
    padding: 8px 10px;
    border-radius: 8px;
    transition: all 0.2s ease;
    opacity: 0;
    font-size: 0.85rem;
}

.contact-delete-btn:hover {
    background: rgba(229, 62, 62, 0.25);
    color: #e53e3e;
    transform: scale(1.1);
}

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

.contact-avatar {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #498f95 0%, #3d7a80 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
}

.contact-info {
    flex: 1;
}

.contact-name {
    font-weight: 600;
    color: #e2e8f0;
    font-size: 1rem;
}

.contact-position {
    font-size: 0.85rem;
    color: #a0aec0;
    margin-top: 2px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #a0aec0;
}

.contact-detail i {
    width: 18px;
    text-align: center;
    color: #498f95;
}

.contact-detail a {
    color: #e2e8f0;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-detail a:hover {
    color: #498f95;
}

.contact-notes {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #4a5568;
    font-size: 0.85rem;
    color: #a0aec0;
    font-style: italic;
}

/* Контакты в форме редактирования */
.additional-contacts-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 16px;
}

.contact-row {
    background: linear-gradient(135deg, #2d3748 0%, #1f2937 100%);
    border: 1px solid #4a5568;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    animation: slideIn 0.3s ease;
}

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

.contact-row:hover {
    border-color: #498f95;
}

.contact-row-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(73, 143, 149, 0.1);
    border-bottom: 1px solid #4a5568;
}

.contact-row-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: #e2e8f0;
    font-size: 0.95rem;
}

.contact-row-title i {
    color: #498f95;
}

.btn-remove-contact {
    background: transparent;
    border: none;
    color: #fc8181;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 1rem;
}

.btn-remove-contact:hover {
    background: rgba(252, 129, 129, 0.15);
    color: #e53e3e;
}

.contact-row-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    padding: 16px;
}

.contact-row-fields .form-group {
    margin-bottom: 0;
}

.contact-row-fields label {
    font-size: 0.8rem;
    color: #a0aec0;
    margin-bottom: 6px;
    display: block;
}

.contact-row-fields input {
    width: 100%;
    background: #1a202c;
    border: 1px solid #4a5568;
    border-radius: 8px;
    padding: 10px 12px;
    color: #e2e8f0;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.contact-row-fields input:focus {
    border-color: #498f95;
    outline: none;
    box-shadow: 0 0 0 3px rgba(73, 143, 149, 0.15);
}

.contact-row-fields input::placeholder {
    color: #718096;
}

/* Кнопка добавления контакта */
.btn-add-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    background: linear-gradient(135deg, rgba(73, 143, 149, 0.15) 0%, rgba(73, 143, 149, 0.05) 100%);
    border: 2px dashed #498f95;
    border-radius: 12px;
    color: #498f95;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-add-contact:hover {
    background: linear-gradient(135deg, rgba(73, 143, 149, 0.25) 0%, rgba(73, 143, 149, 0.1) 100%);
    border-color: #5aa8af;
    color: #5aa8af;
    transform: translateY(-2px);
}

.btn-add-contact i {
    font-size: 1.1rem;
}

/* Responsive для контактов */
@media (max-width: 768px) {
    .contacts-list {
        grid-template-columns: 1fr;
    }
    
    .contact-row-fields {
        grid-template-columns: 1fr;
    }
}

/* ==================== УСЛУГИ ==================== */

/* Сетка услуг с галочками */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.service-checkbox {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(45, 55, 72, 0.6) 0%, rgba(45, 55, 72, 0.3) 100%);
    border: 1px solid #2d3748;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.service-checkbox:hover {
    background: linear-gradient(135deg, rgba(73, 143, 149, 0.15) 0%, rgba(45, 55, 72, 0.4) 100%);
    border-color: #498f95;
    transform: translateY(-2px);
}

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

.service-checkbox input[type="checkbox"]:checked + .service-label {
    color: #498f95;
}

.service-checkbox input[type="checkbox"]:checked + .service-label i {
    color: #498f95;
}

.service-checkbox:has(input[type="checkbox"]:checked) {
    background: linear-gradient(135deg, rgba(73, 143, 149, 0.25) 0%, rgba(73, 143, 149, 0.1) 100%);
    border-color: #498f95;
    box-shadow: 0 0 15px rgba(73, 143, 149, 0.2);
}

.service-checkbox:has(input[type="checkbox"]:checked)::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #498f95;
    margin-right: 10px;
    font-size: 0.9rem;
}

.service-label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #a0aec0;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.service-label i {
    color: #718096;
    font-size: 1rem;
    width: 20px;
    text-align: center;
    transition: color 0.3s ease;
}

/* Секция кастомных услуг */
.custom-services-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #2d3748;
}

.custom-services-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: #a0aec0;
    font-size: 0.95rem;
}

.custom-services-header i {
    color: #498f95;
}

.custom-services-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.custom-service-row {
    display: flex;
    align-items: center;
    gap: 10px;
    animation: fadeIn 0.2s ease;
}

.custom-service-input {
    flex: 1;
    padding: 12px 16px;
    background: rgba(45, 55, 72, 0.6);
    border: 1px solid #2d3748;
    border-radius: 10px;
    color: #e2e8f0;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.custom-service-input:focus {
    border-color: #498f95;
    outline: none;
    box-shadow: 0 0 0 3px rgba(73, 143, 149, 0.15);
}

.custom-service-input::placeholder {
    color: #718096;
}

.btn-remove-custom-service {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(229, 62, 62, 0.1);
    border: 1px solid rgba(229, 62, 62, 0.3);
    border-radius: 10px;
    color: #e53e3e;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-remove-custom-service:hover {
    background: rgba(229, 62, 62, 0.2);
    border-color: #e53e3e;
    transform: scale(1.05);
}

.btn-add-custom-service {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, rgba(73, 143, 149, 0.1) 0%, rgba(73, 143, 149, 0.05) 100%);
    border: 2px dashed #498f95;
    border-radius: 10px;
    color: #498f95;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-add-custom-service:hover {
    background: linear-gradient(135deg, rgba(73, 143, 149, 0.2) 0%, rgba(73, 143, 149, 0.1) 100%);
    border-color: #5aa8af;
    color: #5aa8af;
    transform: translateY(-2px);
}

/* Секция услуг в карточке клиента */
.services-section {
    margin-top: 30px;
    padding: 25px;
    background: linear-gradient(135deg, rgba(26, 32, 44, 0.8) 0%, rgba(26, 32, 44, 0.4) 100%);
    border: 1px solid #2d3748;
    border-radius: 16px;
}

.services-section .section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 20px;
}

.services-section .section-title i {
    color: #498f95;
}

.services-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.service-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: linear-gradient(135deg, rgba(73, 143, 149, 0.2) 0%, rgba(73, 143, 149, 0.1) 100%);
    border: 1px solid #498f95;
    border-radius: 25px;
    color: #e2e8f0;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.service-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(73, 143, 149, 0.3);
}

.service-tag i {
    color: #498f95;
    font-size: 0.95rem;
}

.service-tag.custom {
    background: linear-gradient(135deg, rgba(236, 201, 75, 0.2) 0%, rgba(236, 201, 75, 0.1) 100%);
    border-color: #ecc94b;
}

.service-tag.custom i {
    color: #ecc94b;
}

/* Анимация появления */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive для услуг */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .services-tags {
        gap: 8px;
    }
    
    .service-tag {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
}

/* ==================== META ADS SECTION ==================== */

.meta-ads-section {
    margin-top: 30px;
    padding: 25px;
    background: linear-gradient(135deg, rgba(6, 104, 225, 0.1) 0%, rgba(131, 58, 180, 0.05) 100%);
    border: 1px solid #2d3748;
    border-radius: 16px;
}

.meta-ads-section .section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #e2e8f0;
}

.meta-ads-section .section-title i {
    background: linear-gradient(135deg, #0668E1, #833AB4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-link-meta {
    background: linear-gradient(135deg, #0668E1 0%, #0052B4 100%);
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(6, 104, 225, 0.3);
}

.btn-link-meta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(6, 104, 225, 0.4);
}

.meta-accounts-list {
    margin-top: 20px;
}

.meta-loading {
    text-align: center;
    padding: 30px;
    color: #a0aec0;
}

.meta-loading i {
    margin-right: 10px;
}

.meta-empty-state {
    text-align: center;
    padding: 40px 20px;
    background: rgba(45, 55, 72, 0.3);
    border-radius: 12px;
    border: 1px dashed #4a5568;
}

.meta-empty-state i {
    font-size: 3rem;
    color: #4a5568;
    margin-bottom: 15px;
}

.meta-empty-state p {
    color: #a0aec0;
    font-size: 1rem;
    margin-bottom: 8px;
}

.meta-empty-state .hint {
    color: #718096;
    font-size: 0.85rem;
}

/* Linked Meta Account Card */
.meta-account-card {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    border: 1px solid #2d3748;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.meta-account-card:hover {
    border-color: #0668E1;
    box-shadow: 0 4px 15px rgba(6, 104, 225, 0.15);
}

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

.meta-account-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.meta-account-avatar {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: linear-gradient(135deg, #0668E1, #833AB4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    overflow: hidden;
}

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

.meta-account-name {
    color: #e2e8f0;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.meta-account-type {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #a0aec0;
}

.meta-account-type i.fa-facebook {
    color: #1877F2;
}

.meta-account-type i.fa-instagram {
    color: #E1306C;
}

.meta-account-actions {
    display: flex;
    gap: 8px;
}

.btn-meta-action {
    background: rgba(45, 55, 72, 0.5);
    border: 1px solid #4a5568;
    color: #a0aec0;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-meta-action:hover {
    background: rgba(6, 104, 225, 0.2);
    border-color: #0668E1;
    color: #63b3ed;
}

.btn-meta-action.danger:hover {
    background: rgba(252, 129, 129, 0.2);
    border-color: #fc8181;
    color: #fc8181;
}

.meta-account-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    padding-top: 15px;
    border-top: 1px solid #2d3748;
}

.meta-detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.meta-detail-item i {
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
}

.meta-detail-item i.fa-bullhorn {
    color: #0668E1;
}

.meta-detail-item i.fa-instagram {
    color: #E1306C;
}

.meta-detail-item span {
    color: #a0aec0;
    font-size: 0.9rem;
}

.meta-detail-item .detail-value {
    color: #e2e8f0;
    font-weight: 500;
}

/* Meta Link Modal */
.modal-meta-link {
    max-width: 500px;
    width: 95%;
}

.modal-meta-link .modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid #2d3748;
}

.modal-meta-link .modal-header h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    color: #e2e8f0;
    font-size: 1.3rem;
}

.modal-meta-link .modal-header h2 i {
    background: linear-gradient(135deg, #0668E1, #833AB4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-meta-link .modal-body {
    padding: 25px;
}

.modal-meta-link .modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 25px;
    border-top: 1px solid #2d3748;
    background: rgba(26, 32, 44, 0.5);
}

.modal-meta-link .btn-cancel {
    padding: 12px 24px;
    background: #4a5568;
    border: none;
    border-radius: 8px;
    color: #e2e8f0;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-meta-link .btn-cancel:hover {
    background: #5a6578;
}

.modal-meta-link .btn-save {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.meta-link-status {
    margin-bottom: 20px;
}

.meta-status-loading {
    text-align: center;
    padding: 30px;
    color: #a0aec0;
}

.meta-link-form .form-group {
    margin-bottom: 20px;
}

.meta-link-form label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #e2e8f0;
    font-weight: 500;
    margin-bottom: 8px;
}

.meta-link-form .form-select {
    width: 100%;
    padding: 14px 16px;
    background: #0d1117;
    border: 2px solid #2d3748;
    border-radius: 10px;
    color: #e2e8f0;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23a0aec0' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 45px;
}

.meta-link-form .form-select:hover {
    border-color: #4a5568;
}

.meta-link-form .form-select:focus {
    outline: none;
    border-color: #0668E1;
    box-shadow: 0 0 0 3px rgba(6, 104, 225, 0.2);
}

.meta-link-form .form-select option {
    background: #1a202c;
    color: #e2e8f0;
    padding: 12px;
}

.meta-link-form .hint {
    display: block;
    margin-top: 8px;
    color: #718096;
    font-size: 0.8rem;
}

.instagram-linked {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: rgba(72, 187, 120, 0.1);
    border: 2px solid rgba(72, 187, 120, 0.3);
    border-radius: 10px;
    color: #68d391;
    font-weight: 500;
}

.instagram-linked i {
    font-size: 1.1rem;
}

.instagram-not-linked {
    padding: 14px 16px;
    background: rgba(45, 55, 72, 0.3);
    border: 2px solid #2d3748;
    border-radius: 10px;
    color: #718096;
    font-size: 0.9rem;
}

.meta-warning {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: rgba(236, 201, 75, 0.1);
    border: 1px solid rgba(236, 201, 75, 0.3);
    border-radius: 12px;
}

.meta-warning i {
    color: #ecc94b;
    font-size: 1.5rem;
    margin-top: 2px;
}

.meta-warning h4 {
    color: #ecc94b;
    margin-bottom: 5px;
}

.meta-warning p {
    color: #a0aec0;
    font-size: 0.9rem;
}

.meta-warning a {
    color: #63b3ed;
    text-decoration: underline;
}

.btn-meta-save {
    background: linear-gradient(135deg, #0668E1 0%, #0052B4 100%) !important;
    box-shadow: 0 2px 8px rgba(6, 104, 225, 0.3);
}

.btn-meta-save:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(6, 104, 225, 0.5);
}

.btn-meta-save:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    background: #4a5568 !important;
}

/* Quick actions в карточке Meta */
.meta-quick-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #2d3748;
}

.btn-meta-quick {
    flex: 1;
    padding: 10px 15px;
    background: rgba(6, 104, 225, 0.1);
    border: 1px solid rgba(6, 104, 225, 0.3);
    border-radius: 8px;
    color: #63b3ed;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-meta-quick:hover {
    background: rgba(6, 104, 225, 0.2);
    border-color: #0668E1;
}

/* ==================== ПРИМЕЧАНИЯ ==================== */

/* Стиль для примечаний с переносами строк */
.notes-content {
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    margin: 0;
    padding: 12px 16px;
    background: rgba(45, 55, 72, 0.4);
    border-radius: 8px;
    border: 1px solid #2d3748;
    line-height: 1.6;
    max-height: 300px;
    overflow-y: auto;
}

.notes-content:empty::before,
.notes-content:contains('-')::before {
    content: none;
}

/* Textarea для примечаний в формах */
textarea[name="notes"] {
    min-height: 120px;
    resize: vertical;
    white-space: pre-wrap;
}

/* ==================== ВЫБОР ТИПА ФОТОСЕССИИ В АКЦИЯХ ==================== */

.photo-session-types {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.photo-session-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    background: linear-gradient(135deg, rgba(45, 55, 72, 0.6) 0%, rgba(45, 55, 72, 0.3) 100%);
    border: 2px solid #2d3748;
    border-radius: 12px;
    color: #a0aec0;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.photo-session-btn:hover {
    background: linear-gradient(135deg, rgba(73, 143, 149, 0.15) 0%, rgba(45, 55, 72, 0.4) 100%);
    border-color: #498f95;
    color: #e2e8f0;
    transform: translateY(-2px);
}

.photo-session-btn.selected {
    background: linear-gradient(135deg, rgba(73, 143, 149, 0.3) 0%, rgba(73, 143, 149, 0.15) 100%);
    border-color: #498f95;
    color: #e2e8f0;
    box-shadow: 0 0 20px rgba(73, 143, 149, 0.3);
}

.photo-session-btn.selected i {
    color: #498f95;
}

.photo-session-btn i {
    font-size: 1rem;
    color: #718096;
    transition: color 0.3s ease;
}

/* Предупреждение об отсутствии услуг */
.services-warning {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(236, 201, 75, 0.15) 0%, rgba(236, 201, 75, 0.05) 100%);
    border: 1px solid rgba(236, 201, 75, 0.3);
    border-radius: 12px;
    color: #ecc94b;
}

.services-warning i {
    font-size: 1.5rem;
    margin-top: 2px;
}

.services-warning strong {
    display: block;
    margin-bottom: 5px;
    color: #ecc94b;
}

.services-warning p {
    color: #a0aec0;
    font-size: 0.9rem;
    margin: 0;
}

.services-warning a {
    color: #498f95;
    text-decoration: underline;
}

.services-warning a:hover {
    color: #5aa8af;
}

/* Responsive для типов фотосессий */
@media (max-width: 768px) {
    .photo-session-types {
        gap: 8px;
    }
    
    .photo-session-btn {
        padding: 10px 14px;
        font-size: 0.85rem;
    }
}

/* ==================== ТУМБЛЕР БЕСПЛАТНАЯ/ПЛАТНАЯ СЕССИЯ ==================== */

.session-type-toggle {
    margin-bottom: 25px;
}

.toggle-container {
    display: flex;
    gap: 0;
    background: rgba(45, 55, 72, 0.4);
    border-radius: 16px;
    padding: 6px;
    border: 1px solid #2d3748;
}

.toggle-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 24px;
    background: transparent;
    border: none;
    border-radius: 12px;
    color: #718096;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-btn:hover {
    color: #a0aec0;
    background: rgba(45, 55, 72, 0.5);
}

.toggle-btn.active {
    background: linear-gradient(135deg, #498f95 0%, #3d7a7f 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(73, 143, 149, 0.4);
}

.toggle-btn i {
    font-size: 1.1rem;
}

/* Контейнер цен */
.prices-container {
    margin-top: 20px;
}

.price-row {
    display: flex;
    align-items: center;
    gap: 20px;
}

.price-field {
    flex: 1;
}

.price-field label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #a0aec0;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.price-field label i {
    color: #498f95;
}

.price-input-wrapper {
    display: flex;
    align-items: center;
    background: rgba(45, 55, 72, 0.6);
    border: 2px solid #2d3748;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.price-input-wrapper:focus-within {
    border-color: #498f95;
    box-shadow: 0 0 0 3px rgba(73, 143, 149, 0.15);
}

.price-input-wrapper input {
    flex: 1;
    padding: 14px 16px;
    background: transparent;
    border: none;
    color: #e2e8f0;
    font-size: 1.2rem;
    font-weight: 600;
    outline: none;
}

.price-input-wrapper input::placeholder {
    color: #4a5568;
}

.price-input-wrapper .currency {
    padding: 14px 16px;
    background: rgba(73, 143, 149, 0.2);
    color: #498f95;
    font-size: 1.1rem;
    font-weight: 600;
}

.price-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    color: #498f95;
    font-size: 1.2rem;
}

.promo-price-field {
    position: relative;
}

/* Бейдж "Бесплатно" */
.free-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 24px;
    background: linear-gradient(135deg, rgba(72, 187, 120, 0.2) 0%, rgba(72, 187, 120, 0.1) 100%);
    border: 2px solid #48bb78;
    border-radius: 12px;
    color: #48bb78;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.free-badge i {
    font-size: 1.2rem;
}

/* Responsive для цен */
@media (max-width: 768px) {
    .toggle-container {
        flex-direction: column;
    }
    
    .toggle-btn {
        padding: 14px 20px;
    }
    
    .price-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .price-arrow {
        transform: rotate(90deg);
        width: 100%;
        padding: 5px 0;
    }
    
    .price-field {
        width: 100%;
    }
}

/* ==================== ИНФОРМАЦИЯ ОТ ФОТОГРАФА ==================== */

.photographer-info-hint {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px 18px;
    background: linear-gradient(135deg, rgba(73, 143, 149, 0.1) 0%, rgba(73, 143, 149, 0.05) 100%);
    border: 1px solid rgba(73, 143, 149, 0.3);
    border-radius: 12px;
    margin-bottom: 15px;
    color: #a0aec0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.photographer-info-hint i {
    color: #498f95;
    font-size: 1.1rem;
    margin-top: 2px;
}

#photographerInfo {
    width: 100%;
    min-height: 120px;
    padding: 16px;
    background: rgba(45, 55, 72, 0.6);
    border: 2px solid #2d3748;
    border-radius: 12px;
    color: #e2e8f0;
    font-size: 0.95rem;
    line-height: 1.6;
    resize: vertical;
    transition: all 0.3s ease;
}

#photographerInfo:focus {
    border-color: #498f95;
    outline: none;
    box-shadow: 0 0 0 3px rgba(73, 143, 149, 0.15);
}

#photographerInfo::placeholder {
    color: #718096;
}

/* ==================== ПОЖЕЛАНИЯ ОТ КЛИЕНТА ==================== */

.client-wishes-hint {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px 18px;
    background: linear-gradient(135deg, rgba(229, 62, 62, 0.1) 0%, rgba(229, 62, 62, 0.05) 100%);
    border: 1px solid rgba(229, 62, 62, 0.3);
    border-radius: 12px;
    margin-bottom: 15px;
    color: #a0aec0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.client-wishes-hint i {
    color: #e53e3e;
    font-size: 1.1rem;
    margin-top: 2px;
}

#clientWishes {
    width: 100%;
    min-height: 100px;
    padding: 16px;
    background: rgba(45, 55, 72, 0.6);
    border: 2px solid #2d3748;
    border-radius: 12px;
    color: #e2e8f0;
    font-size: 0.95rem;
    line-height: 1.6;
    resize: vertical;
    transition: all 0.3s ease;
}

#clientWishes:focus {
    border-color: #e53e3e;
    outline: none;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.15);
}

#clientWishes::placeholder {
    color: #718096;
}

/* ==================== ДЕТАЛИ СЪЁМКИ ==================== */

.shooting-details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.shooting-detail-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 25px 20px;
    background: linear-gradient(135deg, rgba(45, 55, 72, 0.6) 0%, rgba(45, 55, 72, 0.3) 100%);
    border: 2px solid #2d3748;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.shooting-detail-card:hover {
    border-color: #498f95;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.detail-card-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(73, 143, 149, 0.2) 0%, rgba(73, 143, 149, 0.1) 100%);
    border-radius: 50%;
    margin-bottom: 15px;
}

.detail-card-icon i {
    font-size: 1.5rem;
    color: #498f95;
}

.detail-card-icon.location {
    background: linear-gradient(135deg, rgba(237, 137, 54, 0.2) 0%, rgba(237, 137, 54, 0.1) 100%);
}

.detail-card-icon.location i {
    color: #ed8936;
}

.detail-card-icon.pets {
    background: linear-gradient(135deg, rgba(236, 201, 75, 0.2) 0%, rgba(236, 201, 75, 0.1) 100%);
}

.detail-card-icon.pets i {
    color: #ecc94b;
}

.detail-card-content {
    text-align: center;
    width: 100%;
}

.detail-card-content label {
    display: block;
    color: #a0aec0;
    font-size: 0.85rem;
    margin-bottom: 10px;
    font-weight: 500;
}

.detail-card-content select {
    width: 100%;
    padding: 12px 16px;
    background: rgba(26, 32, 44, 0.8);
    border: 2px solid #2d3748;
    border-radius: 10px;
    color: #e2e8f0;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23718096' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
}

.detail-card-content select:focus {
    border-color: #498f95;
    outline: none;
    box-shadow: 0 0 0 3px rgba(73, 143, 149, 0.15);
}

/* Тумблер для животных */
.pets-toggle {
    display: flex;
    gap: 8px;
    background: rgba(26, 32, 44, 0.6);
    padding: 6px;
    border-radius: 12px;
    border: 2px solid #2d3748;
}

.pets-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: #718096;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pets-btn:hover {
    color: #a0aec0;
    background: rgba(45, 55, 72, 0.5);
}

.pets-btn.active {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: #fff;
    box-shadow: 0 3px 10px rgba(72, 187, 120, 0.4);
}

.pets-btn#petsNo.active {
    background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
    box-shadow: 0 3px 10px rgba(229, 62, 62, 0.4);
}

/* Иконка приветствия */
.detail-card-icon.greeting {
    background: linear-gradient(135deg, rgba(159, 122, 234, 0.2) 0%, rgba(159, 122, 234, 0.1) 100%);
}

.detail-card-icon.greeting i {
    color: #9f7aea;
}

/* Иконка фотографов */
.detail-card-icon.photographers {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.2) 0%, rgba(236, 72, 153, 0.1) 100%);
}

.detail-card-icon.photographers i {
    color: #ec4899;
}

/* Поле ввода в карточке */
.detail-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(26, 32, 44, 0.8);
    border: 2px solid #2d3748;
    border-radius: 10px;
    color: #e2e8f0;
    font-size: 0.95rem;
    text-align: center;
    transition: all 0.3s ease;
}

.detail-input:focus {
    border-color: #498f95;
    outline: none;
    box-shadow: 0 0 0 3px rgba(73, 143, 149, 0.15);
}

.detail-input::placeholder {
    color: #718096;
}

/* Тумблер для фотографов */
.photographers-toggle {
    display: flex;
    gap: 8px;
    background: rgba(26, 32, 44, 0.6);
    padding: 6px;
    border-radius: 12px;
    border: 2px solid #2d3748;
}

.photographer-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 12px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: #718096;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.photographer-btn:hover {
    color: #a0aec0;
    background: rgba(45, 55, 72, 0.5);
}

.photographer-btn.active {
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
    color: #fff;
    box-shadow: 0 3px 10px rgba(236, 72, 153, 0.4);
}

/* Поле адреса на всю ширину */
.shooting-address-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(45, 55, 72, 0.5) 0%, rgba(45, 55, 72, 0.2) 100%);
    border: 2px solid #2d3748;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.shooting-address-row:focus-within {
    border-color: #498f95;
}

.address-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(72, 187, 120, 0.2) 0%, rgba(72, 187, 120, 0.1) 100%);
    border-radius: 12px;
    flex-shrink: 0;
}

.address-icon i {
    font-size: 1.3rem;
    color: #48bb78;
}

.address-field {
    flex: 1;
}

.address-field label {
    display: block;
    color: #a0aec0;
    font-size: 0.85rem;
    margin-bottom: 8px;
    font-weight: 500;
}

.address-input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(26, 32, 44, 0.8);
    border: 2px solid #2d3748;
    border-radius: 10px;
    color: #e2e8f0;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.address-input:focus {
    border-color: #498f95;
    outline: none;
    box-shadow: 0 0 0 3px rgba(73, 143, 149, 0.15);
}

.address-input::placeholder {
    color: #718096;
}

/* Кнопка карточки клиента */
.btn-client-card {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: linear-gradient(135deg, rgba(73, 143, 149, 0.2) 0%, rgba(73, 143, 149, 0.1) 100%);
    border: 2px solid #498f95;
    border-radius: 10px;
    color: #498f95;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* ==================== ФОТОПРОФИЛЬ КЛИЕНТА ==================== */

.photo-profile-card {
    display: flex;
    gap: 30px;
    padding: 25px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, rgba(26, 32, 44, 0.9) 0%, rgba(45, 55, 72, 0.6) 100%);
    border: 2px solid #2d3748;
    border-radius: 20px;
}

.profile-logo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.profile-logo-container {
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(73, 143, 149, 0.15) 0%, rgba(45, 55, 72, 0.5) 100%);
    border: 3px solid #498f95;
    border-radius: 20px;
    overflow: hidden;
}

.profile-logo-container i {
    font-size: 3.5rem;
    color: #498f95;
}

.profile-logo-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}

.btn-download-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: linear-gradient(135deg, rgba(73, 143, 149, 0.2) 0%, rgba(73, 143, 149, 0.1) 100%);
    border: 2px solid #498f95;
    border-radius: 10px;
    color: #498f95;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-download-logo:hover {
    background: linear-gradient(135deg, #498f95 0%, #3d7a7f 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(73, 143, 149, 0.4);
}

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

.profile-info-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #2d3748;
}

.profile-info-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 5px;
}

.profile-info-header p {
    color: #a0aec0;
    font-size: 1rem;
    display: none;
}

.profile-info-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.profile-info-row {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    background: rgba(45, 55, 72, 0.4);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.profile-info-row:hover {
    background: rgba(45, 55, 72, 0.6);
}

.info-label {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 130px;
    flex-shrink: 0;
    color: #718096;
    font-size: 0.9rem;
    font-weight: 500;
}

.info-label i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
}

/* Цвета иконок */
#rowEmail .info-label i { color: #498f95; }
#rowPhone .info-label i { color: #48bb78; }
#rowWhatsapp .info-label i { color: #25d366; }
#rowWebsite .info-label i { color: #ed8936; }
#rowFacebook .info-label i { color: #1877f2; }
#rowInstagram .info-label i { color: #e4405f; }

.info-value {
    flex: 1;
    color: #e2e8f0;
    font-size: 0.95rem;
    word-break: break-all;
}

.btn-copy {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(73, 143, 149, 0.15);
    border: 1px solid rgba(73, 143, 149, 0.3);
    border-radius: 8px;
    color: #498f95;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.btn-copy:hover {
    background: rgba(73, 143, 149, 0.3);
    border-color: #498f95;
    transform: scale(1.05);
}

.btn-copy.copied {
    background: rgba(72, 187, 120, 0.2);
    border-color: #48bb78;
    color: #48bb78;
}

/* Responsive для фотопрофиля */
@media (max-width: 768px) {
    .photo-profile-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .profile-logo-container {
        width: 120px;
        height: 120px;
    }
    
    .profile-logo-container i {
        font-size: 2.5rem;
    }
    
    .profile-info-header {
        text-align: center;
    }
    
    .info-label {
        width: 100px;
        font-size: 0.8rem;
    }
    
    .info-value {
        font-size: 0.85rem;
    }
}

@media (max-width: 500px) {
    .profile-info-row {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .info-label {
        width: 100%;
    }
    
    .info-value {
        flex: 1;
    }
}

/* Responsive для деталей съёмки */
@media (max-width: 1200px) {
    .shooting-details-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .shooting-details-grid {
        grid-template-columns: 1fr;
    }
    
    .shooting-address-row {
        flex-direction: column;
        text-align: center;
    }
    
    .address-field {
        width: 100%;
    }
}

/* ==================== Фото-материалы ==================== */

.materials-hint {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px 18px;
    background: linear-gradient(135deg, rgba(128, 90, 213, 0.1) 0%, rgba(128, 90, 213, 0.05) 100%);
    border: 1px solid rgba(128, 90, 213, 0.3);
    border-radius: 12px;
    margin-bottom: 20px;
    color: #a0aec0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.materials-hint i {
    color: #805ad5;
    font-size: 1.1rem;
    margin-top: 2px;
}

.materials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.materials-grid .file-card {
    border: 2px solid rgba(128, 90, 213, 0.3);
    position: relative;
}

.materials-grid .file-card:hover {
    border-color: #805ad5;
}

.materials-grid .file-card img {
    border-radius: 8px;
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.material-card {
    position: relative;
    background: #2d3748;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.material-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #805ad5, #d53f8c);
}

/* Стили для просмотра материалов в модалке */
.materials-section h3 {
    color: #805ad5;
}

.materials-section h3 i {
    color: #805ad5;
}

.materials-gallery .view-gallery-item {
    border: 2px solid rgba(128, 90, 213, 0.3);
}

.materials-gallery .view-gallery-item:hover {
    border-color: #805ad5;
}

.material-item {
    position: relative;
}

.material-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #805ad5, #d53f8c);
    z-index: 1;
    border-radius: 8px 8px 0 0;
}

/* Кнопки действий на карточках файлов */
.file-card-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.file-card:hover .file-card-actions {
    opacity: 1;
}

.file-card .btn-action {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 14px;
}

.file-card .btn-download {
    background: rgba(72, 187, 120, 0.9);
    color: white;
}

.file-card .btn-download:hover {
    background: #48bb78;
    transform: scale(1.1);
}

.file-card .btn-replace {
    background: rgba(99, 179, 237, 0.9);
    color: white;
}

.file-card .btn-replace:hover {
    background: #63b3ed;
    transform: scale(1.1);
}

.file-card .btn-delete {
    background: rgba(245, 101, 101, 0.9);
    color: white;
}

.file-card .btn-delete:hover {
    background: #f56565;
    transform: scale(1.1);
}

/* Скрыть старую кнопку удаления когда есть новые действия */
.file-card:has(.file-card-actions) > .btn-delete-file {
    display: none;
}

/* Кнопка скачать все в заголовке секции */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.btn-download-all {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #805ad5 0%, #6b46c1 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-download-all:hover {
    background: linear-gradient(135deg, #6b46c1 0%, #553c9a 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(128, 90, 213, 0.4);
}

.btn-download-all:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Модальное окно прогресса загрузки */
.download-progress-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(4px);
}

.download-progress-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 16px;
    padding: 40px 50px;
    text-align: center;
    border: 1px solid rgba(128, 90, 213, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    max-width: 400px;
}

.download-spinner {
    font-size: 48px;
    color: #805ad5;
    margin-bottom: 20px;
}

.download-spinner i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.download-progress-content h3 {
    color: #e2e8f0;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.download-progress-content p {
    color: #a0aec0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.btn-download-all i {
    font-size: 14px;
}

/* ==================== Секция видео от исполнителей ==================== */

#executorVideosSection .section-header {
    background: linear-gradient(135deg, rgba(56, 178, 172, 0.15) 0%, rgba(49, 151, 149, 0.1) 100%);
}

#executorVideosSection .section-header h2 {
    color: #38b2ac;
}

#executorVideosSection .section-header h2 i {
    color: #38b2ac;
}

.badge-count {
    background: linear-gradient(135deg, #38b2ac 0%, #319795 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-left: 10px;
}

.executor-videos-hint {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(56, 178, 172, 0.1);
    border: 1px solid rgba(56, 178, 172, 0.2);
    border-radius: 8px;
    color: #81e6d9;
    margin-bottom: 16px;
}

.executor-videos-hint i {
    color: #38b2ac;
}

.executor-videos-grid .file-card {
    border: 2px solid rgba(56, 178, 172, 0.3);
    aspect-ratio: unset;
    overflow: visible;
}

.executor-videos-grid .file-card:hover {
    border-color: #38b2ac;
}

.executor-video .executor-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(56, 178, 172, 0.95);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.no-videos-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: #718096;
    text-align: center;
    gap: 10px;
}

.no-videos-message i {
    font-size: 2.5rem;
    color: #4a5568;
}

/* ==================== ФОТО ОТ ИСПОЛНИТЕЛЕЙ ==================== */

.executor-photos-hint {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(129, 140, 248, 0.1);
    border: 1px solid rgba(129, 140, 248, 0.2);
    border-radius: 8px;
    color: #a5b4fc;
    margin-bottom: 16px;
}

.executor-photos-hint i {
    color: #818cf8;
}

.executor-photos-grid .file-card {
    border: 2px solid rgba(129, 140, 248, 0.3);
    aspect-ratio: unset;
    overflow: visible;
}

.executor-photos-grid .file-card:hover {
    border-color: #818cf8;
}

.executor-photo img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s;
}

.executor-photo img:hover {
    transform: scale(1.02);
}

.no-photos-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: #718096;
    text-align: center;
    gap: 10px;
}

.no-photos-message i {
    font-size: 2.5rem;
    color: #4a5568;
}

/* ==================== Модальное окно для видео ==================== */

.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
}

.video-modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    z-index: 1;
}

.video-modal-content video {
    max-width: 90vw;
    max-height: 80vh;
    border-radius: 12px;
    background: #000;
}

.video-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.video-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.video-modal-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    gap: 20px;
}

.video-modal-filename {
    color: #a0aec0;
    font-size: 0.9rem;
    word-break: break-all;
}

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

.btn-modal-action {
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    background: linear-gradient(135deg, #805ad5 0%, #6b46c1 100%);
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-modal-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(128, 90, 213, 0.4);
}

/* Миниатюра видео с кнопкой воспроизведения */

.video-thumbnail {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.video-thumbnail video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.play-overlay i {
    font-size: 3rem;
    color: white;
    opacity: 0.9;
    transition: all 0.3s ease;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.video-thumbnail:hover .play-overlay {
    background: rgba(0, 0, 0, 0.5);
}

.video-thumbnail:hover .play-overlay i {
    transform: scale(1.2);
    opacity: 1;
}

/* Кнопка воспроизведения в actions */

.file-card .btn-play {
    background: rgba(128, 90, 213, 0.9);
    color: white;
}

.file-card .btn-play:hover {
    background: #805ad5;
    transform: scale(1.1);
}

.file-card .btn-comment {
    background: rgba(237, 137, 54, 0.9);
    color: white;
}

.file-card .btn-comment:hover {
    background: #ed8936;
    transform: scale(1.1);
}

/* Статусы видео */

.video-status-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 10;
}

.video-status-badge.status-pending {
    background: rgba(160, 174, 192, 0.95);
    color: #1a202c;
}

.video-status-badge.status-revision {
    background: rgba(237, 137, 54, 0.95);
    color: white;
}

.video-status-badge.status-approved {
    background: rgba(72, 187, 120, 0.95);
    color: white;
}

/* Статус от клиента/фотографа */
.client-status-badge {
    position: absolute;
    top: 36px;
    right: 8px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 10;
}

.client-status-badge.client-status-pending {
    background: rgba(99, 102, 241, 0.95);
    color: white;
}

.client-status-badge.client-status-revision {
    background: rgba(239, 68, 68, 0.95);
    color: white;
}

.client-status-badge.client-status-approved {
    background: rgba(16, 185, 129, 0.95);
    color: white;
}

/* Превью комментария под видео */

.video-comment-preview {
    position: absolute;
    bottom: 45px;
    left: 0;
    right: 0;
    background: rgba(237, 137, 54, 0.95);
    color: white;
    padding: 6px 10px;
    font-size: 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.3s ease;
}

.video-comment-preview:hover {
    background: rgba(221, 107, 32, 0.95);
}

.video-comment-preview i {
    flex-shrink: 0;
}

/* Модальное окно комментария */

.comment-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.comment-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.comment-modal-content {
    position: relative;
    background: #2d3748;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.comment-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #4a5568;
}

.comment-modal-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #e2e8f0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.comment-modal-header h3 i {
    color: #ed8936;
}

.comment-modal-close {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: #a0aec0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.comment-modal-close:hover {
    background: #4a5568;
    color: white;
}

.comment-modal-body {
    padding: 24px;
}

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

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

.comment-modal-body label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: #a0aec0;
    font-size: 0.9rem;
}

.comment-modal-body label i {
    color: #805ad5;
}

.comment-status-select {
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid #4a5568;
    background: #1a202c;
    color: #e2e8f0;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.comment-status-select:focus {
    outline: none;
    border-color: #805ad5;
    box-shadow: 0 0 0 3px rgba(128, 90, 213, 0.2);
}

.comment-modal-body textarea {
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid #4a5568;
    background: #1a202c;
    color: #e2e8f0;
    font-size: 0.95rem;
    resize: vertical;
    min-height: 100px;
    transition: all 0.3s ease;
}

.comment-modal-body textarea:focus {
    outline: none;
    border-color: #805ad5;
    box-shadow: 0 0 0 3px rgba(128, 90, 213, 0.2);
}

.comment-modal-body textarea::placeholder {
    color: #718096;
}

.comment-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid #4a5568;
}

.comment-modal-footer .btn-cancel {
    padding: 10px 20px;
    border-radius: 8px;
    border: 1px solid #4a5568;
    background: transparent;
    color: #a0aec0;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.comment-modal-footer .btn-cancel:hover {
    background: #4a5568;
    color: white;
}

.comment-modal-footer .btn-save-comment {
    padding: 10px 24px;
    border-radius: 8px;
    border: none;
    background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%);
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.comment-modal-footer .btn-save-comment:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(237, 137, 54, 0.4);
}

.comment-modal-footer .btn-save-comment:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ==================== AI Text Generation Section ==================== */

.ai-text-section {
    border: 2px solid #8b5cf6;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05) 0%, rgba(168, 85, 247, 0.05) 100%);
}

.ai-text-section .section-header h2 i {
    color: #a855f7;
}

.ai-text-hint {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 12px;
    margin-bottom: 20px;
    color: #a0aec0;
    align-items: flex-start;
}

.ai-text-hint i {
    color: #a855f7;
    font-size: 1.2rem;
    margin-top: 2px;
}

.ai-text-hint span {
    line-height: 1.5;
    font-size: 0.9rem;
}

.ai-generate-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.btn-generate-ai, .btn-regenerate-ai {
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    border: none;
}

.btn-generate-ai {
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.btn-generate-ai:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

.btn-regenerate-ai {
    background: #2d3748;
    color: #e2e8f0;
    border: 1px solid #4a5568;
}

.btn-regenerate-ai:hover {
    background: #4a5568;
    border-color: #8b5cf6;
}

.btn-generate-ai:disabled, .btn-regenerate-ai:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.ai-status {
    font-size: 0.85rem;
    color: #68d391;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ai-status i {
    color: #68d391;
}

/* Validation Errors */
.validation-errors {
    background: rgba(245, 101, 101, 0.1);
    border: 1px solid #fc8181;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
}

.validation-errors-header {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fc8181;
    font-weight: 600;
    margin-bottom: 12px;
}

.validation-errors-header i {
    font-size: 1.1rem;
}

.validation-errors-list {
    list-style: none;
    padding-left: 0;
}

.validation-errors-list li {
    color: #feb2b2;
    padding: 6px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.validation-errors-list li i {
    color: #fc8181;
    font-size: 0.8rem;
}

/* Generated Texts Container */
.generated-texts-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.generated-text-block {
    background: #1a202c;
    border: 1px solid #2d3748;
    border-radius: 12px;
    padding: 16px;
}

.generated-text-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.generated-text-header h4 {
    color: #e2e8f0;
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.generated-text-header h4 i {
    color: #a855f7;
}

.generated-text-actions {
    display: flex;
    gap: 8px;
}

.btn-copy-text {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid #4a5568;
    background: #2d3748;
    color: #a0aec0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-copy-text:hover {
    background: #8b5cf6;
    border-color: #8b5cf6;
    color: white;
}

.btn-copy-text.copied {
    background: #68d391;
    border-color: #68d391;
    color: white;
}

.generated-text-block textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #4a5568;
    border-radius: 10px;
    background: #0d1117;
    color: #e2e8f0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    resize: vertical;
    transition: border-color 0.2s ease;
}

.generated-text-block textarea:focus {
    outline: none;
    border-color: #8b5cf6;
}

.generated-text-block textarea::placeholder {
    color: #4a5568;
}

.btn-save-text {
    margin-top: 12px;
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    background: linear-gradient(135deg, #68d391 0%, #48bb78 100%);
    color: white;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn-save-text:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(104, 211, 145, 0.3);
}

.btn-save-text:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-save-text.saved {
    background: #68d391;
}

/* CTA Grid для 4 Call-to-Action текстов */
.cta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

/* CTA Grid для 3 Überschriften (Branding) */
.cta-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.cta-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cta-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cta-label {
    font-size: 0.8rem;
    color: #a0aec0;
    font-weight: 500;
}

.btn-copy-cta {
    padding: 4px 8px !important;
    font-size: 0.75rem !important;
}

.cta-item textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #4a5568;
    border-radius: 8px;
    background: #0d1117;
    color: #e2e8f0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    line-height: 1.5;
    resize: vertical;
    transition: border-color 0.2s ease;
}

.cta-item textarea:focus {
    outline: none;
    border-color: #8b5cf6;
}

/* SEO Description counter */
.seo-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.char-counter {
    font-size: 0.8rem;
    color: #718096;
}

.char-counter.warning {
    color: #ed8936;
}

.char-counter.limit {
    color: #fc8181;
}

@media (max-width: 768px) {
    .cta-grid,
    .cta-grid-3 {
        grid-template-columns: 1fr;
    }
}

/* ==================== PHOTO REVIEW MODAL ==================== */
.photo-review-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-review-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
}

.photo-review-content {
    position: relative;
    width: 95%;
    max-width: 1400px;
    height: 90vh;
    background: #1a202c;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6);
    border: 1px solid #2d3748;
}

.photo-review-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
}

.photo-review-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.photo-review-layout {
    display: flex;
    height: 100%;
}

.photo-review-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0d1117;
    padding: 20px;
    overflow: hidden;
}

.photo-review-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.photo-review-sidebar {
    width: 380px;
    background: #1a202c;
    border-left: 1px solid #2d3748;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.photo-review-header {
    padding: 24px;
    border-bottom: 1px solid #2d3748;
}

.photo-review-header h3 {
    color: #e2e8f0;
    font-size: 1rem;
    font-weight: 600;
    word-break: break-all;
    margin-bottom: 4px;
}

.photo-review-date {
    color: #718096;
    font-size: 0.85rem;
}

.photo-review-status-section {
    padding: 20px 24px;
    border-bottom: 1px solid #2d3748;
}

.photo-review-status-section label {
    display: block;
    color: #a0aec0;
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.photo-review-comments {
    flex: 1;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
}

.comment-section {
    background: #0d1117;
    border-radius: 12px;
    padding: 16px;
}

.comment-section label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #a0aec0;
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.comment-section.admin-comment label i {
    color: #8b5cf6;
}

.comment-section.executor-reply label i {
    color: #68d391;
}

.comment-section textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #2d3748;
    border-radius: 8px;
    background: #1a202c;
    color: #e2e8f0;
    font-size: 0.9rem;
    line-height: 1.5;
    resize: vertical;
    min-height: 100px;
}

.comment-section textarea:focus {
    outline: none;
    border-color: #8b5cf6;
}

.executor-reply-text {
    background: #1a202c;
    border: 1px solid #2d3748;
    border-radius: 8px;
    padding: 12px;
    color: #e2e8f0;
    font-size: 0.9rem;
    line-height: 1.5;
    white-space: pre-wrap;
    min-height: 60px;
}

.executor-reply-date {
    display: block;
    color: #718096;
    font-size: 0.8rem;
    margin-top: 8px;
    text-align: right;
}

.photo-review-actions {
    padding: 20px 24px;
    border-top: 1px solid #2d3748;
    display: flex;
    gap: 12px;
}

.btn-download-photo {
    flex: 1;
    padding: 12px 20px;
    border-radius: 8px;
    border: 1px solid #4a5568;
    background: transparent;
    color: #e2e8f0;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-download-photo:hover {
    background: #2d3748;
    border-color: #718096;
}

.btn-save-photo-review {
    flex: 1;
    padding: 12px 20px;
    border-radius: 8px;
    border: none;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn-save-photo-review:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

/* Превью ответа исполнителя на карточке */
.executor-reply-preview {
    background: linear-gradient(135deg, rgba(104, 211, 145, 0.15) 0%, rgba(72, 187, 120, 0.1) 100%);
    border: 1px solid rgba(104, 211, 145, 0.3);
    color: #68d391;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Индикатор чата на карточке */
.chat-indicator {
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: #a78bfa;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Индикатор сообщений от клиента на изображении/видео */
.client-message-indicator {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
    color: white;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.5);
    animation: client-message-pulse 2s ease-in-out infinite;
    border: 2px solid white;
}

@keyframes client-message-pulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(139, 92, 246, 0.5);
    }
    50% { 
        transform: scale(1.1);
        box-shadow: 0 6px 20px rgba(139, 92, 246, 0.8);
    }
}

.client-message-badge {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(167, 139, 250, 0.15) 100%);
    border: 1px solid rgba(139, 92, 246, 0.4);
    color: #a78bfa;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    animation: client-badge-pulse 2s ease-in-out infinite;
}

@keyframes client-badge-pulse {
    0%, 100% { 
        border-color: rgba(139, 92, 246, 0.4);
        box-shadow: 0 0 0 rgba(139, 92, 246, 0);
    }
    50% { 
        border-color: rgba(139, 92, 246, 0.7);
        box-shadow: 0 0 8px rgba(139, 92, 246, 0.4);
    }
}

/* Кликабельные карточки */
.file-card.executor-video,
.file-card.executor-photo {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.file-card.executor-video:hover,
.file-card.executor-photo:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Анимации уведомлений */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* ==================== ADMIN CHAT STYLES ==================== */
.media-chat {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-message {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 12px;
    animation: messageSlide 0.2s ease;
}

.message-image {
    margin-bottom: 8px;
    border-radius: 8px;
    overflow: hidden;
    max-width: 100%;
}

.message-image img {
    max-width: 100%;
    max-height: 400px;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease;
    display: block;
}

.message-image img:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

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

.chat-message.admin-message {
    align-self: flex-end;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(124, 58, 237, 0.15) 100%);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 12px 12px 4px 12px;
}

.chat-message.executor-message {
    align-self: flex-start;
    background: linear-gradient(135deg, rgba(104, 211, 145, 0.2) 0%, rgba(72, 187, 120, 0.15) 100%);
    border: 1px solid rgba(104, 211, 145, 0.3);
    border-radius: 12px 12px 12px 4px;
}

.chat-message.initial-comment {
    align-self: flex-end;
    background: linear-gradient(135deg, rgba(237, 137, 54, 0.15) 0%, rgba(221, 107, 32, 0.1) 100%);
    border: 1px solid rgba(237, 137, 54, 0.3);
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    gap: 10px;
}

.message-author {
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.admin-message .message-author {
    color: #a78bfa;
}

.executor-message .message-author {
    color: #68d391;
}

.initial-comment .message-author {
    color: #ed8936;
}

.message-time {
    font-size: 0.7rem;
    color: #718096;
}

.message-text {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #e2e8f0;
    white-space: pre-wrap;
    word-break: break-word;
}

.no-messages {
    text-align: center;
    color: #718096;
    padding: 40px 20px;
    font-size: 0.9rem;
}

/* Ввод сообщения */
/* Вкладки чатов */
.chat-tabs {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    border-bottom: 1px solid #2d3748;
    background: #1a202c;
}

.chat-tab {
    flex: 1;
    padding: 10px 16px;
    border: none;
    background: transparent;
    color: #a0aec0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.chat-tab:hover {
    background: rgba(139, 92, 246, 0.1);
    color: #a78bfa;
}

.chat-tab.active {
    background: rgba(139, 92, 246, 0.2);
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.4);
}

.chat-tab-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ef4444;
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s ease-in-out infinite;
}

.chat-tab-content {
    display: none;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.chat-tab-content.active {
    display: flex;
}

.chat-input-container {
    padding: 12px 16px;
    border-top: 1px solid #2d3748;
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.chat-input-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.chat-input-container textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #4a5568;
    border-radius: 12px;
    background: #0d1117;
    color: #e2e8f0;
    font-size: 0.95rem;
    resize: vertical;
    min-height: 80px;
    max-height: 200px;
    line-height: 1.5;
    font-family: inherit;
}

.chat-input-container textarea:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.1);
}

.chat-actions {
    display: flex;
    gap: 8px;
    align-items: flex-end;
}

.btn-attach-file {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: #2d3748;
    color: #a0aec0;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-attach-file:hover {
    background: #4a5568;
    color: #e2e8f0;
    transform: scale(1.05);
}

.btn-send-message {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.btn-send-message:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.btn-send-message:active {
    transform: scale(0.95);
}

/* Уменьшить секцию статуса */
.photo-review-status-section {
    padding: 12px 24px;
    border-bottom: 1px solid #2d3748;
}

/* Видео контейнер в модальном окне */
.photo-review-content.video-review .photo-review-image {
    background: #000;
}

.photo-review-content.video-review video {
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
}

.video-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive */
@media (max-width: 900px) {
    .photo-review-layout {
        flex-direction: column;
    }
    
    .photo-review-image {
        height: 50%;
    }
    
    .photo-review-sidebar {
        width: 100%;
        height: 50%;
    }
}

/* Client Share Section */
.client-share-section .section-header h2 i {
    color: #667eea;
}

.client-share-section .btn-share-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.client-share-section .btn-share-primary:hover {
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.client-share-section .share-status-badge.active {
    background: rgba(102, 126, 234, 0.2);
    color: #667eea;
}

/* Bottom Save Section */
.bottom-save-section {
    padding: 30px;
    text-align: center;
    margin-top: 20px;
}

.btn-save-bottom {
    padding: 16px 40px;
    font-size: 1.1rem;
}

/* ==================== Personal Photos Section ==================== */

.personal-photos-section {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid #4a5568;
}

.personal-photos-display-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.personal-photo-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.personal-photo-item:hover {
    border-color: #667eea;
    transform: scale(1.03);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.personal-photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.personal-photo-item .photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    padding: 30px 10px 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.personal-photo-item:hover .photo-overlay {
    opacity: 1;
}

.btn-download-photo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.9);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-download-photo:hover {
    background: #667eea;
    transform: scale(1.1);
}

/* Personal Photos Upload (in forms) */
.personal-photos-upload {
    margin-top: 12px;
}

.form-hint-text {
    color: #a0aec0;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.personal-photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.personal-photo-preview {
    position: relative;
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    background: #2d3748;
    border: 2px solid #4a5568;
}

.personal-photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.personal-photo-preview .btn-remove-photo {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(229, 62, 62, 0.9);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.2s ease;
    opacity: 0;
}

.personal-photo-preview:hover .btn-remove-photo {
    opacity: 1;
}

.personal-photo-preview .btn-remove-photo:hover {
    background: #e53e3e;
    transform: scale(1.1);
}

.personal-photo-preview .photo-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    color: white;
    font-size: 10px;
    padding: 15px 6px 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.personal-photos-dropzone {
    border: 2px dashed #4a5568;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(45, 55, 72, 0.3);
}

.personal-photos-dropzone:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.personal-photos-dropzone i {
    font-size: 2.5rem;
    color: #667eea;
    margin-bottom: 12px;
    display: block;
}

.personal-photos-dropzone span {
    display: block;
    color: #e2e8f0;
    font-weight: 500;
    margin-bottom: 6px;
}

.personal-photos-dropzone small {
    color: #a0aec0;
    font-size: 0.85rem;
}

/* ==================== Campaign History Section ==================== */

.campaign-history-section {
    margin-top: 30px;
    padding: 24px;
    background: linear-gradient(145deg, #1a202c 0%, #2d3748 100%);
    border-radius: 16px;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.campaign-history-section .section-header-inline {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.campaign-history-section .section-title {
    margin: 0;
    font-size: 1.2rem;
    color: #e2e8f0;
}

.campaign-history-section .section-title i {
    color: #667eea;
    margin-right: 8px;
}

.history-count {
    color: #a0aec0;
    font-size: 0.9rem;
    font-weight: normal;
}

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

.history-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: #718096;
    text-align: center;
}

.history-empty i {
    font-size: 3rem;
    margin-bottom: 12px;
    opacity: 0.5;
}

.history-empty p {
    margin: 0;
    font-size: 1rem;
}

.history-period {
    background: rgba(45, 55, 72, 0.5);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(74, 85, 104, 0.5);
}

.history-period-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
    border-bottom: 1px solid rgba(74, 85, 104, 0.5);
    color: #e2e8f0;
    font-weight: 600;
}

.history-period-header i {
    color: #667eea;
}

.history-period-count {
    margin-left: auto;
    font-size: 0.85rem;
    color: #a0aec0;
    font-weight: normal;
}

.history-items {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.history-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: rgba(26, 32, 44, 0.6);
    border-radius: 10px;
    border: 1px solid rgba(74, 85, 104, 0.3);
    transition: all 0.2s ease;
}

.history-item:hover {
    border-color: rgba(102, 126, 234, 0.4);
    background: rgba(26, 32, 44, 0.8);
}

.history-item-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667eea;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.history-item-content {
    flex: 1;
    min-width: 0;
}

.history-item-name {
    color: #e2e8f0;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.history-item-details {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.85rem;
    color: #a0aec0;
}

.history-item-details span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.history-item-details i {
    font-size: 0.75rem;
    color: #718096;
}

.history-item-archived {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: #718096;
    white-space: nowrap;
}

.history-item-archived i {
    color: #f6ad55;
}

/* ==================== Texts Lock Styles ==================== */

/* Плашка блокировки "Проверено" */
.texts-lock-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
    animation: lockBadgePulse 2s ease-in-out infinite;
}

.texts-lock-badge i {
    font-size: 0.8rem;
}

@keyframes lockBadgePulse {
    0%, 100% { box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3); }
    50% { box-shadow: 0 2px 12px rgba(16, 185, 129, 0.5); }
}

/* Кнопка разблокировки */
.btn-unlock-texts {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #2d3748;
    border: 1px solid #f6ad55;
    border-radius: 8px;
    color: #f6ad55;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-unlock-texts:hover {
    background: rgba(246, 173, 85, 0.15);
    border-color: #ed8936;
    color: #ed8936;
    transform: translateY(-1px);
}

.btn-unlock-texts:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Заблокированные textarea */
textarea.locked,
.generated-text-block textarea.locked {
    background: #1a202c !important;
    color: #718096 !important;
    cursor: not-allowed !important;
    border-color: #4a5568 !important;
    opacity: 0.7;
}

textarea.locked:focus,
.generated-text-block textarea.locked:focus {
    outline: none !important;
    border-color: #4a5568 !important;
    box-shadow: none !important;
}

/* Заблокированные кнопки генерации */
.btn-generate-ai.locked,
.btn-regenerate-ai.locked {
    background: #2d3748 !important;
    color: #718096 !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
    border: 1px solid #4a5568 !important;
}

.btn-generate-ai.locked:hover,
.btn-regenerate-ai.locked:hover {
    transform: none !important;
    box-shadow: none !important;
}

.btn-generate-ai.locked i,
.btn-regenerate-ai.locked i {
    color: #f6ad55;
}

/* Модальное окно блокировки */
.texts-locked-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.texts-locked-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.texts-locked-content {
    position: relative;
    background: #1a202c;
    border: 1px solid #2d3748;
    border-radius: 20px;
    padding: 40px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease;
}

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

.texts-locked-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, rgba(246, 173, 85, 0.2) 0%, rgba(237, 137, 54, 0.2) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.texts-locked-icon i {
    font-size: 2rem;
    color: #f6ad55;
}

.texts-locked-content h3 {
    color: #e2e8f0;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.texts-locked-content p {
    color: #a0aec0;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 24px;
}

.texts-locked-actions {
    display: flex;
    justify-content: center;
}

.btn-close-locked {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: #2d3748;
    border: 1px solid #4a5568;
    border-radius: 10px;
    color: #e2e8f0;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-close-locked:hover {
    background: #4a5568;
    border-color: #718096;
}

/* Скрыть кнопки сохранения для заблокированных текстов */
.texts-locked .btn-save-text {
    display: none !important;
}

