.uni-item-bg{padding:20px}
.uni-form{overflow:visible}

.account-index__item{display:flex;flex-direction:column;height:calc(100% - 20px);margin:0 0 20px;align-items:center;justify-content:center;text-align:center;line-height:normal;font-size:.95em;font-weight:500}
.account-index__icon{width:100%;margin:0 0 15px;font-size:3.5em}
.account-index__text{color:#666}

.account-login__wrapper{display:flex;flex-wrap:wrap;height:100%}
.account-login__heading{width:100%;margin:0 0 20px}
.account-login__form-group{width:250px;max-width:100%}
.account-login__forgotten{display:block;margin:10px 0;font-size:.95em}
.account-login__btn{margin:auto 0 0}

.account-forgotten__heading{margin-left:0}
.account-forgotten__text{margin:15px 0;font-size:.95em}
.account-forgotten__btn{margin:20px 0 0}

.account-password__btn{margin:10px 0 0}

.account-register__already{margin:15px 0 5px}
.account-register__already a{text-decoration:underline}
.account-register__input{margin:0 0 5px}
.account-register__customer-group-item:first-child{display:block;margin:7px 0 5px}
.account-register__newsletter-item:first-child{display:block;margin:7px 0 5px}
.account-register__agree{margin:0 0 10px}
.account-register .custom-field{display:none}

.account-wishlist{display:flex;flex-wrap:wrap;overflow:hidden;margin:0 -10px 30px}
.account-wishlist .product-thumb__name{padding-bottom:15px}
.account-wishlist .product-thumb__compare{top:50px}
.account-wishlist p{padding:0 10px}
.account-wishlist__delete{display:flex;align-items:center;justify-content:center;position:absolute;top:-5px;right:-5px;z-index:1;width:30px;height:30px;font-size:.8em;background:#f7f7f7;border-radius:50%;transition:all linear .15s}

.account-download{display:flex;margin-bottom:10px}
.account-download > div{display:flex}
.account-download__item{display:flex;flex-direction:column;align-items:flex-start !important;width:100%;margin:0 0 20px}
.account-download__name{display:block;margin:0 0 15px;font-weight:500;font-size:1.2em}
.account-download__description{width:100%;margin:auto 0 15px}
.account-download__description-item{display:flex;margin:0 0 5px}
.account-download__description-div{position:relative;width:60%;display:flex;align-items:flex-end;white-space:nowrap}
.account-download__description-div:first-child:after{position:relative;bottom:4px;flex:1 1 auto;content:'';margin:0 10px;border-bottom:dotted 1px #bbb}
.account-download__btn{max-width:150px}

.account-edit__btn{margin:10px 0 0}

.account-address-list{}
.account-address-list__buttons{margin:20px 0 0}
.account-address-list__address-id{display:block;margin:0 0 10px;font-weight:500;font-size:1.2em}
.account-address-list__customer-name{margin:0 0 10px;font-weight:500}

.account-order-list{margin-bottom:10px}
.account-order-list__item{margin:0 0 20px}
.account-order-list__order-id{display:block;margin:0 0 10px;font-weight:700;font-size:1.2em}
.account-order-list__name{margin:0 0 10px;font-weight:500}
.account-order-list__description{display:flex;flex-direction:column;margin:0 0 20px}
.account-order-list__description-item{display:flex;align-items:flex-start;margin:0 0 5px}
.account-order-list__description-div{position:relative;width:60%;display:flex;align-items:flex-end}
.account-order-list__description-div:first-child:after{position:relative;bottom:4px;flex:1 1 auto;content:'';margin:0 10px;border-bottom:dotted 1px #bbb}

.account-order-info__description{margin:0 0 20px}
.account-order-info__payment-address, .account-order-info__shipping-address{margin:0 0 20px}
.account-order-info__products-wrap{margin:0 0 30px;border-top:solid 1px rgba(0, 0, 0, .05);box-shadow:0 5px 10px rgba(0, 0, 0, .1);border-radius:var(--border-radius-1)}
.account-order-info__products-table{width:100%;margin:0}
.account-order-info__products-heading{font-weight:700;font-size:.95em;white-space:nowrap;background:#f7f7f7}
.account-order-info__products-item{min-height:80px;height:80px;border-top:solid 1px #eee}
.account-order-info__products-item:nth-child(odd){background:#fafafa}
.account-order-info__products-name, .account-order-info__products-model, .account-order-info__products-quantity, .account-order-info__products-price, .account-order-info__products-total{padding:10px 15px;border-right:solid 1px #eee}
.account-order-info__products-model, .account-order-info__products-quantity{width:100px;min-width:100px}
.account-order-info__products-price, .account-order-info__products-total{width:150px;min-width:100px}
.account-order-info__products-btn{padding:10px 15px}
.account-order-info__totals{padding:15px 10px 10px;border-top:solid 1px #eee}
.account-order-info__totals-item{display:flex;justify-content:flex-end;margin:0 0 5px}
.account-order-info__totals-item:last-child{}
.account-order-info__totals-text{min-width:80px;padding:0 0 0 10px;font-weight:500}
.account-order-info__comment{margin:0 0 30px;padding:20px;background:#f7f7f7;border-radius:var(--border-radius-1)}
.account-order-info__history-wrap{margin:0 0 20px;border-top:solid 1px rgba(0, 0, 0, .05);box-shadow:0 5px 10px rgba(0, 0, 0, .1);border-radius:var(--border-radius-1)}
.account-order-info__history-table{width:100%;margin:0}
.account-order-info__history-heading{font-weight:700;font-size:.95em;background:#f7f7f7}
.account-order-info__history-item{height:40px;border-top:solid 1px #eee}
.account-order-info__history-item:nth-child(odd){background:#fafafa}
.account-order-info__history-date, .account-order-info__history-status, .account-order-info__history-comment{padding:10px 15px;border-right:solid 1px #eee}
.account-order-info__history-date, .account-order-info__history-status{width:180px;min-width:100px}

.account-reward__total{margin:0 0 20px;padding:20px;background:#f7f7f7;border-radius:var(--border-radius-1)}
.account-reward{margin-bottom:10px}
.account-reward__item{margin:0 0 20px}
.account-reward__name{display:block;margin:0 0 15px;font-weight:500;font-size:1.2em}
.account-reward__description{display:flex;flex-direction:column}
.account-reward__description-item{display:flex;align-items:flex-start}
.account-reward__description-item:not(:last-child){margin:0 0 10px}
.account-reward__description-div{position:relative;width:60%;display:flex;align-items:flex-end}
.account-reward__description-div:first-child:after{position:relative;bottom:4px;flex:1 1 auto;content:'';margin:0 10px;border-bottom:dotted 1px #bbb}

.account-voucher__description{margin:15px 0 5px;font-size:.95em}

/*скрыл "Подписаться на новости" в аккаунте*/
/* точный селектор */
.row-flex a[href*="newsletter"] {
    display: none !important;
}

/*скрыл "рассылка" в боковом меню*/
#column-right a[href*="newsletter"] {
    display: none;
}


/*Стили только для техподдержки - список обращений*/
        .ticket-modern-list {
            display: none; /* Скрыто по умолчанию */
        }
        
        /* Показываем новые элементы только когда старые скрыты */
        .ticket-modern-list.active {
            display: block;
        }
        
        /* ========== НОВЫЕ СТИЛИ ДЛЯ СЕТКИ ========== */
        .ticket-modern-grid {
            display: flex;
            flex-wrap: wrap;
            margin: 0 -0.5rem;
        }
        
        .ticket-modern-grid-item {
            flex: 0 0 100%;
            padding: 0 0.5rem;
            margin-bottom: 1rem;
        }
        
        /* На десктопе (ширина экрана 768px и выше) показываем по 3 карточки в ряд */
        @media (min-width: 768px) {
            .ticket-modern-grid-item {
                flex: 0 0 33.333333%;
                max-width: 33.333333%;
            }
        }
        
        /* На больших экранах можно оставить 3 колонки или увеличить до 4 */
        @media (min-width: 1200px) {
            .ticket-modern-grid-item {
                flex: 0 0 33.333333%;
                max-width: 33.333333%;
            }
        }
        
        /* Для очень маленьких экранов оставляем одну колонку */
        @media (max-width: 767px) {
            .ticket-modern-grid-item {
                flex: 0 0 100%;
                max-width: 100%;
            }
        }
        
        /* Карточка внутри сетки */
        .ticket-modern-grid-item .ticket-modern-item {
            height: 100%;
            display: flex;
            flex-direction: column;
            margin-bottom: 0;
        }
        /* ========== КОНЕЦ НОВЫХ СТИЛЕЙ ДЛЯ СЕТКИ ========== */
        
        .ticket-modern-item {
            background: linear-gradient(135deg,#b0c1ff2e,#a07eff08);
            /*border: 1px solid #aa85f729;*/
            border-radius: 26px;
            padding: 1.25rem;
            margin-bottom: 1rem;
            transition: all 0.2s;
            display: flex;
            flex-direction: column;
            gap: .5rem;
        }
        
        .ticket-modern-item:hover {
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
            /*transform: translateY(-2px);*/
        }
        
        .ticket-modern-item-new {
            /*background: #f0f9ff;*/
            /*border-color: #bae6fd;*/
        }
        
        .ticket-modern-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .ticket-modern-id {
            /* font-family:monospace; */
            font-size: 12px;
            color: #0051c2b5;
            background: white;
            padding: 5px 10px;
            border-radius: 16px;
            font-weight: 800;
        }
        
        .ticket-modern-status {
            display: inline-flex;
    align-items: center;
    gap: .375rem;
    padding: .25rem .75rem;
    border-radius: 16px;
    font-size: .75rem;
    font-weight: 500;
    background: linear-gradient(135deg, #6b8cff42, #a07eff40);
        }
        
        .ticket-modern-status-dot {
            width: 0.375rem;
            height: 0.375rem;
            border-radius: 50%;
            background: #ffffff;
        }
        
        .ticket-modern-title {
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
        }
        
        .ticket-modern-link {
            font-size: 0.6rem;
            /*font-weight: 600;*/
            color: #1f2937;
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            justify-content: space-between;
        }
        
        .ticket-modern-link:hover {
            color: #3b82f6;
        }
        
        .ticket-modern-new-badge {
            font-size: 0.75rem;
            font-weight: 500;
            padding: 0.25rem 0.5rem;
            background: #f97316;
            color: white;
            border-radius: 9999px;
        }
        
        .ticket-modern-department {
            display: flex;
            align-items: center;
            gap: 0.375rem;
            font-size: 1.2rem;
            color: #4a4a4a;
            font-weight: 600;
        }
        
        .ticket-modern-department i {
            color: #3b82f6;
        }
        
        .ticket-modern-dates {
            display: flex;
            gap: 1.5rem;
            /*padding-top: 0.75rem;*/
            /*border-top: 1px solid #f3f4f6;*/
            justify-content: space-between;
        }
        
        .ticket-modern-date {
            display: flex;
            align-items: center;
            gap: 0.375rem;
            font-size: 0.75rem;
            color: #9ca3af;
        }
        
        .ticket-modern-date i {
            color: #6b7280;
        }
        
        .ticket-modern-actions {
            display: flex;
            gap: 0.5rem;
            justify-content: space-between;
        }
        
        .ticket-modern-action {
            width: 2rem;
            height: 2rem;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 26px;
            transition: all 0.2s;
            text-decoration: none;
        }
        
        .ticket-modern-action-view {
            /* background:#63fc; */
            color: #63fc;
            border: 2px solid #6633ff69;
            font-size: 20px;
        }
        
        /*.ticket-modern-action-view:hover {
            background: #e5e7eb;
            transform: scale(1.1);
        }*/
        
        .ticket-modern-action-close {
            /* background:#fee2e2; */
            color: #ef4444;
            border: 2px solid #ef444429;
            font-size: 20px;
        }
        
        /*.ticket-modern-action-close:hover {
            background: #fecaca;
            transform: scale(1.1);
        }*/
        
        .ticket-modern-action-disabled {
            opacity: 0.5;
            cursor: not-allowed;
            background: #f3f4f6;
            color: #9ca3af;
        }
        
        .ticket-modern-empty {
            text-align: center;
            padding: 3rem;
            background: white;
            border: 1px solid #e5e7eb;
            border-radius: 1rem;
        }
        
        .ticket-modern-empty i {
            font-size: 3rem;
            color: #d1d5db;
            margin-bottom: 1rem;
        }
        
        .ticket-modern-empty p {
            color: #6b7280;
            margin-bottom: 1.5rem;
        }
        
        .ticket-modern-btn {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.75rem 1.5rem;
            border-radius: 26px;
            font-weight: 500;
            text-decoration: none;
            transition: all 0.2s;
            border: none;
            cursor: pointer;
        }
        
        .ticket-modern-btn-primary {
            background: linear-gradient(135deg,#6b8cff,#a07eff);
            color: white;
        }
        
        .ticket-modern-btn-primary:hover {
            background: #ffffff;
            /*transform: translateY(-2px);*/
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        }
        
        /* Стили для фильтров */
        .ticket-modern-filters {
            margin-bottom: 1rem;
        }
        
        .ticket-modern-filters-wrapper {
            display: flex;
            flex-wrap: wrap;
            gap: 1rem;
            align-items: center;
        }
        
        .ticket-modern-filter-dropdown {
            position: relative;
            display: inline-block;
        }
        
        .ticket-modern-filter-btn {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.5rem 1rem;
            background: #e7e7e761;
            border: 1px solid #e5e7eb;
            border-radius: 0.75rem;
            color: #374151;
            font-size: 0.95rem;
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .ticket-modern-filter-btn:hover {
            background: #f9fafb;
            border-color: #3b82f6;
        }
        
        .ticket-modern-filter-btn i:last-child {
            font-size: 0.875rem;
            color: #9ca3af;
            transition: transform 0.2s;
        }
        
        .ticket-modern-filter-dropdown.open .ticket-modern-filter-btn i:last-child {
            transform: rotate(180deg);
        }
        
        .ticket-modern-dropdown-menu {
            position: absolute;
            top: 100%;
            left: 0;
            margin-top: 0.5rem;
            min-width: 220px;
            background: white;
            border: 1px solid #e5e7eb;
            border-radius: 0.75rem;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
            list-style: none;
            padding: 0.5rem;
            z-index: 1000;
            display: none;
        }
        
        .ticket-modern-dropdown-menu li a {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0.5rem 1rem;
            color: #374151;
            text-decoration: none;
            border-radius: 0.5rem;
            transition: all 0.2s;
            font-size: 0.95rem;
        }
        
        .ticket-modern-dropdown-menu li a:hover {
            background: #f3f4f6;
        }
        
        .ticket-modern-badge {
            display: inline-flex;
            align-items: center;
            padding: 0.25rem 0.5rem;
            background: #f3f4f6;
            border-radius: 9999px;
            font-size: 0.75rem;
            color: #6b7280;
        }
        
        .ticket-modern-filter-clear {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.5rem 1rem;
            background: #fee2e2;
            border: 1px solid #fecaca;
            border-radius: 0.75rem;
            color: #dc2626;
            text-decoration: none;
            font-size: 0.95rem;
            transition: all 0.2s;
        }
        
        .ticket-modern-filter-clear:hover {
            background: #fecaca;
        }
        
        /* Пагинация */
        .ticket-modern-pagination {
            display: flex;
            justify-content: flex-end;
            align-items: center;
            flex-wrap: wrap;
            /*gap: 1rem;*/
            margin: 1rem 0 2rem 0;
            padding: 1rem;
            /*background: white;*/
            border: 1px solid rgba(162, 184, 254, .2);
            border-radius: 50px;
        }
        
        .ticket-modern-pagination-links {
            display: flex;
            gap: 0.5rem;
            flex-wrap: wrap;
        }
        
        .ticket-modern-pagination-links a,
        .ticket-modern-pagination-links span {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 2rem;
            height: 2rem;
            padding: 0 0.5rem;
            border-radius: 0.5rem;
            background: white;
            color: #374151;
            text-decoration: none;
            border: 1px solid #e5e7eb;
            transition: all 0.2s;
        }
        
        .ticket-modern-pagination-links a:hover {
            background: #f3f4f6;
            border-color: #d1d5db;
        }
        
        .ticket-modern-pagination-links .active span {
            background: #3b82f6;
            color: white;
            border-color: #3b82f6;
        }
        
        /* Адаптация для мобильных */
        @media (max-width: 768px) {
            .ticket-modern-filters-wrapper {
                flex-direction: column;
                align-items: stretch;
            }
            
            .ticket-modern-filter-dropdown {
                width: 100%;
            }
            
            .ticket-modern-filter-btn {
                /*width: 100%;*/
                justify-content: space-between;
            }
            
            .ticket-modern-dropdown-menu {
                width: 100%;
            }
            
            .ticket-modern-item {
                padding: 1rem;
            }
            
            .ticket-modern-header {
                /*flex-direction: column;*/
                align-items: flex-start;
                gap: 0.5rem;
            }
            
            .ticket-modern-dates {
                /*flex-direction: column;*/
                gap: 0.5rem;
            }
            
            .ticket-modern-actions {
                justify-content: space-between;
            }
            
            .ticket-modern-pagination {
                flex-direction: column;
                text-align: center;
            }
            
            .ticket-modern-pagination-links {
                justify-content: center;
            }
        }
/*конец блока*/
/*==ticket_add.twig== Информационный блок.*/
/* Базовые стили */
.info-bl-tiket {
    background: #ffffff;
    border-radius: 26px;
    margin-bottom: 1rem;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

/* Заголовок блока */
.info-bl-tiket-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 0.875rem;
    background: linear-gradient(135deg, #ff2466, #a07eff) !important;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
}

/*.info-bl-tiket-header:hover {
    background: #e9eef3;
}*/

.info-bl-tiket-header i:first-child {
    color: #ffffff;
    font-size: 0.875rem;
}

.info-bl-tiket-header span {
    flex: 1;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #ffffff;
}

.info-bl-tiket-toggle {
    color: #ffffff;
    font-size: 1rem;
    transition: transform 0.2s;
}

/* Скрытое состояние — добавляем класс сразу в HTML */
.info-bl-tiket.collapsed .info-bl-tiket-toggle {
    transform: rotate(-90deg);
}

.info-bl-tiket.collapsed .info-bl-tiket-body {
    display: none;
}

/* Тело блока */
.info-bl-tiket-body {
    padding: 0.875rem;
    border-top: 1px solid #e2e8f0;
}

.info-bl-tiket-section {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.info-bl-tiket-item {
    flex: 1;
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    min-width: 180px;
}

.info-bl-tiket-item i {
    color: #3b82f6;
    font-size: 0.875rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.info-bl-tiket-text {
    flex: 1;
}

.info-bl-tiket-text strong {
    display: inline-block;
    font-weight: 600;
    color: #1e293b;
    font-size: 0.8125rem;
}

.info-bl-tiket-text span {
    display: inline;
    font-size: 0.8125rem;
    color: #334155;
    line-height: 1.4;
}

.info-bl-tiket-text small {
    font-size: 0.6875rem;
    color: #64748b;
    display: block;
    margin-top: 0.125rem;
}

.info-bl-tiket-divider {
    width: 100%;
    height: 1px;
    background: #e2e8f0;
    margin: 0.75rem 0;
}

.info-bl-tiket-warning,
.info-bl-tiket-ban {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    padding: 0.625rem;
    border-radius: 0.5rem;
    margin-bottom: 0.625rem;
}

.info-bl-tiket-warning {
    background: #fffbeb;
    border-left: 3px solid #f59e0b;
}

.info-bl-tiket-warning i {
    color: #f59e0b;
    font-size: 0.875rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.info-bl-tiket-ban {
    background: #fef2f2;
    border-left: 3px solid #ef4444;
    margin-bottom: 0;
}

.info-bl-tiket-ban i {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.info-bl-tiket-warning .info-bl-tiket-text strong {
    color: #92400e;
}

.info-bl-tiket-ban .info-bl-tiket-text strong {
    color: #991b1b;
}

.info-bl-tiket-warning .info-bl-tiket-text span,
.info-bl-tiket-ban .info-bl-tiket-text span {
    color: #4b5563;
}

/* Адаптация для планшетов */
@media (min-width: 641px) and (max-width: 768px) {
    .info-bl-tiket-section {
        gap: 0.75rem;
    }
    
    .info-bl-tiket-item {
        min-width: 140px;
    }
}

/* Адаптация для мобильных */
@media (max-width: 640px) {
    .info-bl-tiket-header {
        padding: 0.5rem 0.75rem;
    }
    
    .info-bl-tiket-header span {
        font-size: 0.75rem;
    }
    
    .info-bl-tiket-header i:first-child {
        font-size: 0.8125rem;
    }
    
    .info-bl-tiket-body {
        padding: 0.625rem;
    }
    
    .info-bl-tiket-section {
        flex-direction: column;
        gap: 0.625rem;
    }
    
    .info-bl-tiket-item {
        min-width: auto;
    }
    
    .info-bl-tiket-item i {
        font-size: 0.8125rem;
    }
    
    .info-bl-tiket-text strong,
    .info-bl-tiket-text span {
        font-size: 0.75rem;
    }
    
    .info-bl-tiket-text small {
        font-size: 0.625rem;
    }
    
    .info-bl-tiket-divider {
        margin: 0.625rem 0;
    }
    
    .info-bl-tiket-warning,
    .info-bl-tiket-ban {
        padding: 0.5rem;
        gap: 0.5rem;
    }
    
    .info-bl-tiket-warning i,
    .info-bl-tiket-ban i {
        font-size: 0.75rem;
    }
    
    .info-bl-tiket-warning .info-bl-tiket-text strong,
    .info-bl-tiket-ban .info-bl-tiket-text strong,
    .info-bl-tiket-warning .info-bl-tiket-text span,
    .info-bl-tiket-ban .info-bl-tiket-text span {
        font-size: 0.6875rem;
    }
}

/* Очень маленькие телефоны */
@media (max-width: 380px) {
    .info-bl-tiket-header span {
        font-size: 0.6875rem;
    }
    
    .info-bl-tiket-text strong,
    .info-bl-tiket-text span {
        font-size: 0.6875rem;
    }
}
/*Конец информ блока*/
/*Сама страница ticket_add.twig */
    /* Заголовок страницы */
    .modern-page-title {
        font-size: 1.75rem;
        font-weight: 600;
        color: #1f2937;
        margin: .5rem 0;
    }

    /* Карточка формы */
    .modern-form-card {
        background: white;
        border-radius: 16px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        border: 1px solid #e5e7eb;
        overflow: hidden;
        margin-bottom: 1.5rem;
    }

    .modern-card-header {
        background: linear-gradient(135deg,rgba(107,140,255,.1),rgba(160,126,255,.1));
        padding: 1.25rem 1.5rem;
    }

    .modern-card-header h3 {
        /*color: white;*/
        /*font-weight: 500;*/
        display: flex;
        align-items: center;
        gap: 0.5rem;
        margin: 0;
        font-size: 1.125rem;
    }

    .modern-card-header h3 i {
        font-size: 1.25rem;
    }

    .modern-card-body {
        padding: 1.5rem;
    }

    /* Стили для лейблов */
    .modern-form-label {
        font-weight: 500;
        color: #374151;
        white-space: nowrap;
    }

    .modern-form-label i {
        color: #3b82f6;
        margin-right: 0.5rem;
        width: 1.2rem;
    }

    /* Поля ввода */
    .modern-input,
    .modern-select,
    .modern-textarea {
        border-radius: 0.5rem;
        border: 1px solid #e5e7eb;
        transition: all 0.2s;
    }

    .modern-input:focus,
    .modern-select:focus,
    .modern-textarea:focus {
        border-color: #3b82f6;
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
        outline: none;
    }

    /* Стили для select */
    .modern-select {
        cursor: pointer;
        appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
        background-position: right 0.75rem center;
        background-repeat: no-repeat;
        background-size: 1.25rem;
        padding-right: 2.5rem;
    }

    /* Область прикрепления файлов */
    .modern-attachment-area {
        margin-top: 1rem;
        display: flex;
        align-items: flex-start;
        gap: 0.75rem;
        flex-wrap: wrap;
    }

    .modern-attach-btn {
        white-space: nowrap;
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.5rem 1rem;
        margin: 15px 0 0;
    }

    /* Dropzone */
    .modern-dropzone-wrapper {
        flex: 1;
        min-width: 200px;
    }

    .modern-dropzone {
        min-height: 100px;
        border: 2px dashed #e5e7eb;
        border-radius: 0.75rem;
        background: #f9fafb;
        cursor: pointer;
        transition: all 0.2s;
        padding: 1rem;
    }

    .modern-dropzone:hover,
    .modern-dropzone.dz-drag-hover {
        border-color: #3b82f6;
        background: #eff6ff;
    }

    .modern-dropzone .dz-message {
        margin: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .modern-dropzone .dz-icon-wrapper i {
        font-size: 2rem;
        color: #9ca3af;
    }

    .modern-dropzone .dz-text-wrapper {
        color: #374151;
        font-size: 0.95rem;
    }

    .modern-dropzone small {
        color: #9ca3af;
        font-size: 0.75rem;
    }

    /* Превью файлов */
    .modern-file-preview {
        margin-bottom: 0.5rem;
        border-radius: 0.5rem;
        overflow: hidden;
    }

    /* Кнопка отправки */
    .modern-submit-btn {
        /*padding: 0.625rem 1.5rem;*/
        font-weight: 500;
        min-width: 150px;
    }

    /* Ошибки */
    .modern-error {
        color: #dc3545;
        font-size: 0.875rem;
        margin-top: 0.25rem;
    }

    /* Скрытые элементы */
    .hidden {
        display: none !important;
    }

    /* Скрываем ненужные элементы */
    #input-priority,
    .form-group:has(#input-priority),
    legend:first-of-type,
    label[for="input-name"] {
        display: none !important;
    }

    /* Адаптация для мобильных */
    @media (max-width: 767px) {
        .modern-card-body {
            padding: 1rem;
        }

        .modern-form-label {
            margin-bottom: 0.5rem;
            white-space: normal;
        }

        /* Область прикрепления файлов на мобильных */
        .modern-attachment-area {
            flex-direction: column;
            align-items: stretch;
            gap: 0.5rem;
        }

        .modern-attach-btn {
            width: 100%;
            justify-content: center;
            white-space: normal;
        }

        .modern-dropzone-wrapper {
            width: 100%;
            min-width: auto;
        }

        .modern-dropzone {
            padding: 0.75rem;
        }

        .modern-dropzone .dz-message {
            font-size: 0.9rem;
        }

        .modern-dropzone .dz-icon-wrapper i {
            font-size: 1.5rem;
        }

        .modern-dropzone small {
            font-size: 0.7rem;
        }

        /* Кнопка отправки на мобильных */
        .modern-submit-btn {
            width: 100%;
        }

        .col-sm-offset-2 {
            margin-left: 0;
        }

        /* Превью файлов на мобильных */
        .modern-file-preview .row {
            display: flex;
            flex-wrap: wrap;
        }

        .modern-file-preview .col-sm-4,
        .modern-file-preview .col-sm-8 {
            width: 100%;
            text-align: center !important;
        }

        .modern-file-preview .dz-thumbnail img {
            max-height: 60px;
            margin: 0 auto;
        }

        .dz-name {
            font-size: 0.85rem;
            word-break: break-all;
        }
    }

    /* Для планшетов */
    @media (min-width: 768px) and (max-width: 991px) {
        .modern-form-label {
            font-size: 0.9rem;
            padding-right: 0;
        }
    }
/*Конец блока*/
/*Конец всего ticket_add.twig */
/*==стили ticket_message.twig == */
/* Контейнер чата */
.ticket-chat-container {
    background: #f8fafc !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    margin-bottom: 20px !important;
}

/* Сообщения */
/*.ticket-chat-messages {
    padding: 20px !important;
    max-height: 500px !important;
    overflow-y: auto !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
}*/

/* Каждое сообщение */
.ticket-message {
    display: flex !important;
    gap: 6px !important;
    animation: ticketFadeInUp 0.3s ease !important;
    margin-bottom: 1rem;
}

/* Входящее сообщение (от пользователя) - слева */
.ticket-message-incoming {
    flex-direction: row !important;
}

/* Исходящее сообщение (от админа) - справа */
.ticket-message-outgoing {
    flex-direction: row-reverse !important;
}

/* Аватар */
.ticket-message-avatar {
    flex-shrink: 0 !important;
    align-self: flex-end !important;
}

.ticket-avatar {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 18px !important;
}

.ticket-admin-avatar {
    background: #3b82f6 !important;
    color: white !important;
}

.ticket-user-avatar {
    background: #e2e8f0 !important;
    color: #475569 !important;
}

/* Обёртка сообщения */
.ticket-message-wrapper {
    max-width: 70% !important;
    min-width: 200px !important;
}

/* Шапка сообщения */
.ticket-message-header {
    margin-bottom: 4px !important;
    padding: 0 12px !important;
}

.ticket-message-author {
    font-weight: 600 !important;
    font-size: 12px !important;
    color: #64748b !important;
}

/* Базовый стиль для пузырька сообщения */
.ticket-message-bubble {
    padding: 8px 12px !important;
    border-radius: 18px !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
    word-wrap: break-word !important;
    position: relative !important;
}

/* Входящее сообщение (от пользователя) */
.ticket-message-incoming .ticket-message-bubble {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 18px 18px 18px 4px !important;
}

/* Исходящее сообщение (от админа) */
.ticket-message-outgoing .ticket-message-bubble {
    background: #3b82f6 !important;
    border-radius: 18px 18px 4px 18px !important;
}

/* Текст сообщения */
.ticket-message-text {
    font-size: 14px !important;
    line-height: 1.5 !important;
    margin-bottom: 4px !important;
}

.ticket-message-outgoing .ticket-message-text {
    color: #ffffff !important;
}

.ticket-message-outgoing .ticket-message-text a {
    color: #ffffff !important;
    text-decoration: underline !important;
}

/* Футер сообщения с временем */
.ticket-message-footer {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    margin-top: 4px !important;
}

.ticket-message-time {
    font-size: 10px !important;
    color: #94a3b8 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
}

.ticket-message-outgoing .ticket-message-time {
    color: rgba(255, 255, 255, 0.7) !important;
}

.ticket-message-time i {
    font-size: 9px !important;
}

/* Вложения */
.ticket-message-files {
    margin-top: 8px !important;
    padding-top: 8px !important;
    border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
}

.ticket-message-outgoing .ticket-message-files {
    border-top-color: rgba(255, 255, 255, 0.2) !important;
}

.ticket-files-title {
    font-size: 10px !important;
    font-weight: 500 !important;
    margin-bottom: 6px !important;
    color: inherit !important;
    opacity: 0.7 !important;
}

.ticket-files-list {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
}

.ticket-file-item {
    display: inline-block !important;
}

.ticket-file-link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 3px 8px !important;
    background: rgba(0, 0, 0, 0.05) !important;
    border-radius: 16px !important;
    font-size: 10px !important;
    text-decoration: none !important;
    transition: all 0.2s !important;
}

.ticket-message-outgoing .ticket-file-link {
    background: rgba(255, 255, 255, 0.15) !important;
    color: white !important;
}

.ticket-file-link:hover {
    background: rgba(0, 0, 0, 0.1) !important;
    transform: translateY(-1px) !important;
}

.ticket-message-outgoing .ticket-file-link:hover {
    background: rgba(255, 255, 255, 0.25) !important;
}

.ticket-file-link.disabled {
    opacity: 0.4 !important;
    cursor: not-allowed !important;
}

.ticket-file-link.disabled:hover {
    transform: none !important;
}

.ticket-file-name {
    max-width: 120px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

/* Пустое состояние */
.ticket-chat-empty {
    text-align: center !important;
    padding: 60px 20px !important;
}

.ticket-empty-icon {
    font-size: 48px !important;
    margin-bottom: 16px !important;
    opacity: 0.5 !important;
}

.ticket-chat-empty h4 {
    margin: 0 0 8px !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #0f172a !important;
}

.ticket-chat-empty p {
    margin: 0 !important;
    color: #64748b !important;
}

/* Пагинация */
/*.ticket-chat-pagination {
    padding: 16px 20px !important;
    background: white !important;
    border-top: 1px solid #e2e8f0 !important;
}*/

.ticket-chat-pagination .pagination {
    margin: 0 !important;
}

.ticket-chat-pagination .pagination li a,
.ticket-chat-pagination .pagination li span {
    border-radius: 8px !important;
    margin: 0 2px !important;
    padding: 6px 12px !important;
    border: 1px solid #e2e8f0 !important;
    background: white !important;
    color: #0f172a !important;
}

.ticket-chat-pagination .pagination .active span {
    background: #3b82f6 !important;
    border-color: #3b82f6 !important;
    color: white !important;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    /*.ticket-chat-messages {
        padding: 12px !important;
        gap: 12px !important;
    }*/
    
    .ticket-message-wrapper {
        max-width: 85% !important;
        min-width: 150px !important;
    }
    
    .ticket-avatar {
        width: 28px !important;
        height: 28px !important;
        font-size: 14px !important;
    }
    
    .ticket-message-bubble {
        padding: 6px 10px !important;
    }
    
    .ticket-message-text {
        font-size: 13px !important;
    }
    
    .ticket-message-author {
        font-size: 11px !important;
    }
    
    .ticket-file-name {
        max-width: 80px !important;
    }
}

/* Анимация появления сообщений */
@keyframes ticketFadeInUp {
    from {
        opacity: 0 !important;
        transform: translateY(10px) !important;
    }
    to {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }
}

/* Стили для ссылок внутри сообщений */
.ticket-message-text a {
    color: #3b82f6 !important;
    text-decoration: none !important;
}

.ticket-message-text a:hover {
    text-decoration: underline !important;
}

.ticket-message-outgoing .ticket-message-text a {
    color: #ffffff !important;
}

/* Стилизация скроллбара */
.ticket-chat-messages::-webkit-scrollbar {
    width: 6px !important;
}

.ticket-chat-messages::-webkit-scrollbar-track {
    background: #e2e8f0 !important;
    border-radius: 3px !important;
}

.ticket-chat-messages::-webkit-scrollbar-thumb {
    background: #94a3b8 !important;
    border-radius: 3px !important;
}

.ticket-chat-messages::-webkit-scrollbar-thumb:hover {
    background: #64748b !important;
}
/*конец всего блока ticket_message.twig*/
/*==Стили  ticket_view.twig==*/
    /* Добавляем отступ для заголовка формы */
    .mt-4 {
        margin-top: 1.5rem;
    }
    
    /* ========== КАСТОМНЫЙ СКРОЛЛБАР ========== */
    .modern-chat-history-container::-webkit-scrollbar {
        width: 4px;
    }

    .modern-chat-history-container::-webkit-scrollbar-track {
        background: transparent;
        border-radius: 10px;
    }

    .modern-chat-history-container::-webkit-scrollbar-thumb {
        background: #d1d5db;
        border-radius: 10px;
    }

    .modern-chat-history-container::-webkit-scrollbar-thumb:hover {
        background: #9ca3af;
    }

    /* Для Firefox */
    .modern-chat-history-container {
        scrollbar-width: thin;
        scrollbar-color: #d1d5db transparent;
    }

    /* Скрываем скроллбар только на touch-устройствах, сохраняя возможность прокрутки */
    @media (hover: none) and (pointer: coarse) {
        .modern-chat-history-container::-webkit-scrollbar {
            width: 0;
            background: transparent;
        }
        
        .modern-chat-history-container::-webkit-scrollbar-thumb {
            background: transparent;
        }
        
        .modern-chat-history-container::-webkit-scrollbar-track {
            background: transparent;
        }
        
        .modern-chat-history-container {
            scrollbar-width: none;
            -ms-overflow-style: none;
        }
    }
    
    body {
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
        /*background-color: #f9fafb;*/
    }

    .modern-card {
        background: white;
        border-radius: 0.75rem;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        /*border: 1px solid #e5e7eb;*/
        overflow: hidden;
        margin-bottom: 1.5rem;
    }

    .modern-ticket-card {
        position: sticky;
        top: 1.5rem;
    }

    .modern-card-header {
        background: linear-gradient(135deg,rgba(107,140,255,.1),rgba(160,126,255,.1));
        padding: 1rem 1rem;
    }

    .modern-card-header h3 {
        color: #000000;
        font-weight: 500;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        margin: 0;
        font-size: 1.125rem;
    }

    .modern-card-body {
        padding: 1rem;
    }

    .modern-detail-item {
        display: flex;
        align-items: center;
        justify-content: space-between;
        border-bottom: 1px solid #f3f4f6;
        padding-bottom: 0.5rem;
        margin-bottom: 0.5rem;
    }

    .modern-detail-label {
        color: #6b7280;
        font-size: 0.875rem;
    }

    .modern-detail-value {
        font-weight: 500;
        color: #111827;
        font-size: 0.875rem;
        text-align: right;
    }

    .modern-badge {
        display: inline-flex;
        align-items: center;
        padding: 0.25rem 0.75rem;
        border-radius: 10px;
        font-size: 0.75rem;
        font-weight: 500;
        line-height: 1.25;
    }

    .modern-badge-dot {
        width: 0.375rem;
        height: 0.375rem;
        border-radius: 50%;
        margin-right: 0.375rem;
        background: #000000;
    }

    .modern-date-row {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
    }

    .modern-date-row i {
        color: #9ca3af;
        width: 1rem;
    }

    .modern-date-label {
        color: #6b7280;
    }

    .modern-date-value {
        color: #1f2937;
        margin-left: auto;
        text-align: right;
    }

    .all-message {
        background: white;
        border-radius: 0.75rem;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        padding: 1rem;
    }

    .all-message h3 {
        font-weight: 600;
        color: #374151;
        margin-top: 0;
        margin-bottom: 1rem;
        font-size: 1.25rem;
        display: none;
    }

    .modern-chat-input {
        border: 1px solid #e5e7eb;
        border-radius: 0.75rem;
        padding: 0.75rem 1rem;
        font-family: inherit;
        font-size: 0.95rem;
        line-height: 1.5;
        min-height: 100px;
        resize: vertical;
        transition: border-color 0.2s, box-shadow 0.2s;
        width: 100%;
    }

    .modern-chat-input:focus {
        outline: none;
        border-color: #3b82f6;
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    }

    /* Новые стили для кнопок - горизонтальное расположение на всех устройствах */
    .modern-chat-actions {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 0.75rem;
        margin-top: 1rem;
        flex-wrap: wrap;
    }

    .modern-chat-logs {
        flex: 1;
    }

    .modern-chat-buttons {
        display: flex;
        gap: 0.75rem;
        align-items: center;
    }

    .modern-chat-send-btn,
    .modern-chat-attach-btn {
        white-space: nowrap;
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
    }

    /* Мобильная версия - кнопки также в ряд */
    @media (max-width: 768px) {
        .modern-chat-actions {
            flex-direction: column;
            gap: 0.75rem;
        }
        
        .modern-chat-logs {
            width: 100%;
            text-align: center;
            order: 2;
        }
        
        .modern-chat-buttons {
            width: 100%;
            flex-direction: row;
            justify-content: space-between;
            gap: 0.5rem;
            order: 1;
        }
        
        .modern-chat-send-btn,
        .modern-chat-attach-btn {
            flex: 1;
            white-space: nowrap;
            justify-content: center;
            padding: 0.5rem 0.75rem;
            font-size: 0.875rem;
        }
        
        .modern-chat-send-btn i,
        .modern-chat-attach-btn i {
            margin-right: 0.25rem;
        }
    }

    .modern-chat-history-container {
        background: #f9fafb;
        border-radius: 0.75rem;
        padding: 1rem;
        /*border: 1px solid #e5e7eb;*/
        max-height: 350px;
        overflow-y: auto;
        margin-bottom: 1.5rem;
        border-top: none !important;
    }

    /* Стилизация сообщений из истории */
    .panel-success>.panel-heading {
        background: #cbb9ff;
    }
    .panel-info>.panel-heading {
        background: linear-gradient(48deg, rgba(255, 214, 0, .8) 0%, rgba(255, 170, 0, .8) 25%, rgba(255, 85, 51, .85) 50%, rgba(204, 51, 153, .85) 75%, rgba(102, 51, 255, .8) 100%);
    }
    
    #history .panel.widter {
        border: none;
        border-radius: 0.75rem;
        overflow: hidden;
        margin-bottom: .5rem;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
        transition: box-shadow 0.2s;
    }

    #history .panel.widter:hover {
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    #history .panel.widter .panel-heading {
        /*background-color: #f9fafb;*/
        padding: .5rem .5rem;
        /*border-bottom: 1px solid #e5e7eb;*/
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 12px;
    }

    #history .panel.widter .panel-heading .pull-left {
        font-weight: 600;
        color: #374151;
    }

    #history .panel.widter .panel-heading .pull-right {
        color: #ffffff;
        font-size: 8px;
    }

    #history .panel.widter .panel-heading .pull-right i {
        margin-right: 0.25rem;
    }

    #history .panel.widter .panel-body {
        padding: .5rem;
        background-color: white;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        line-height: 1.5;
        font-size: 14px;
    }

    #history .panel.widter.left {
        /*border-left: 4px solid #3b82f6;*/
        margin-right: auto;
        max-width: 80%;
    }

    #history .panel.widter.right {
        /*border-right: 4px solid #10b981;*/
        margin-left: auto;
        max-width: 80%;
    }

    .history-files a {
        border: 1px solid #d1d5db;
        margin-bottom: 0.5rem;
        display: inline-block;
        padding: 0.25rem 0.75rem;
        border-radius: 0.5rem;
        color: #374151;
        margin-right: 0.5rem;
        font-size: 0.875rem;
        transition: all 0.2s;
        text-decoration: none;
    }

    .history-files a:hover {
        background-color: #e5e7eb;
        border-color: #9ca3af;
        color: #111827;
    }

    .history-files a.disable {
        opacity: 0.3;
        border: 1px solid #ef4444;
        pointer-events: none;
    }

    /* Dropzone стили */
    .modern-chat-dropzone-container {
        margin-top: 1rem;
        border-top: 1px solid #e5e7eb;
        padding: 1rem;
        background: #f9fafb;
        border-radius: 0.75rem;
    }

    .modern-dropzone-style {
        min-height: 100px;
        margin: 0;
        border: 2px dashed #d1d5db;
        border-radius: 0.75rem;
        background: white;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        padding: 1rem;
        cursor: pointer;
        transition: all 0.2s;
    }

    .modern-dropzone-style:hover,
    .modern-dropzone-style.dz-drag-hover {
        border-color: #3b82f6;
        background: #eff6ff;
    }

    .modern-dropzone-style .dz-icon-wrapper i {
        font-size: 2rem;
        color: #9ca3af;
    }

    .modern-dropzone-style .dz-text-wrapper {
        font-size: 0.95rem;
        color: #374151;
        text-align: center;
    }

    .modern-attachment-preview {
        width: 80px;
        height: 80px;
        border-radius: 0.5rem;
        overflow: hidden;
        border: 1px solid #e5e7eb;
        background: white;
        margin-right: 0.5rem;
        margin-bottom: 0.5rem;
        position: relative;
        display: inline-block;
    }

    .modern-attachment-preview .panel-heading {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        background: linear-gradient(to bottom, rgba(0,0,0,0.5), transparent);
        padding: 0.25rem;
        z-index: 2;
    }

    .modern-attachment-preview .dz-mark {
        float: left;
        color: white;
    }

    .modern-attachment-preview .dz-mark i {
        font-size: 1rem;
    }

    .modern-attachment-preview .dz-trash {
        float: right;
    }

    .modern-attachment-preview .dz-trash .dz-close {
        color: white;
        cursor: pointer;
        font-size: 1rem;
        opacity: 0.8;
        transition: opacity 0.2s;
    }

    .modern-attachment-preview .dz-trash .dz-close:hover {
        opacity: 1;
    }

    .modern-attachment-preview .panel-body {
        padding: 0;
        height: 100%;
        position: relative;
    }

    .modern-attachment-preview .dz-thumbnail {
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #f9fafb;
    }

    .modern-attachment-preview .dz-thumbnail img {
        max-width: 100%;
        max-height: 100%;
        object-fit: cover;
    }

    .modern-attachment-preview .dz-progress {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: rgba(0,0,0,0.1);
        z-index: 3;
    }

    .modern-attachment-preview .dz-upload {
        display: block;
        height: 100%;
        background: #3b82f6;
        transition: width 0.3s;
    }

    .modern-attachment-preview .dz-name,
    .modern-attachment-preview .dz-size,
    .modern-attachment-preview .row {
        display: none;
    }

    .modern-alert {
        padding: 1rem;
        border-radius: 0.5rem;
        margin-bottom: 1rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    
    .modern-alert-info {
        background-color: #eff6ff;
        border: 1px solid #bfdbfe;
        color: #1e40af;
    }
    
    .modern-alert-danger {
        background-color: #fef2f2;
        border: 1px solid #fecaca;
        color: #991b1b;
    }

    .chat-pagination .pagination {
        margin: 0;
    }

    .chat-pagination .pagination > li > a,
    .chat-pagination .pagination > li > span {
        border: none;
        border-radius: 0.375rem;
        margin: 0 0.125rem;
        color: #374151;
    }

    .chat-pagination .pagination > .active > a,
    .chat-pagination .pagination > .active > span {
        background: #3b82f6;
        color: white;
    }

    @media (max-width: 768px) {
        .all-message {
            padding: .5rem;
        }

        #history .panel.widter {
            max-width: 100% !important;
            margin-left: 0 !important;
            margin-right: 0 !important;
        }

        #history .panel.widter.left,
        #history .panel.widter.right {
            max-width: 100%;
        }

        .modern-card {
            position: static;
        }
    }

    @media (min-width: 769px) and (max-width: 992px) {
        #history .panel.widter {
            max-width: 90%;
        }
    }

    .clearfix::after {
        content: "";
        clear: both;
        display: table;
    }

/*==конец  ticket_view.twig ==*/








/*стили для мобильной навигации */
/* ===== Хлебные крошки с кнопкой навигации ===== */
.breadcrumb-h1 {
    position: relative;
}

.breadcrumb-header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.breadcrumb-header-wrapper h1 {
    margin: 0;
    flex: 1;
}

/* Компактная кнопка навигации */
.uni-mobile-nav-compact {
    position: relative;
    flex-shrink: 0;
}

.uni-mobile-nav-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(48deg,rgba(255,214,0,.8) 0%,rgba(255,170,0,.8) 25%,rgba(255,85,51,.85) 50%,rgba(204,51,153,.85) 75%,rgba(102,51,255,.8) 100%) !important;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.uni-mobile-nav-trigger:hover {
    background: #ff6b6b;
    transform: scale(1.02);
}

.uni-mobile-nav-trigger:hover i,
.uni-mobile-nav-trigger:hover .uni-nav-text {
    color: #fff;
}

.uni-mobile-nav-trigger i {
    font-size: 16px;
    color: #ffffff;
    transition: color 0.2s ease;
}

.uni-nav-text {
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
    transition: color 0.2s ease;
}

/* ===== Выезжающая снизу панель (Bottom Sheet) ===== */
.uni-mobile-bottom-sheet {
    position: fixed;
    bottom: 3rem;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 24px 24px 0 0;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    z-index: 1001;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.15);
}

.uni-mobile-bottom-sheet.active {
    transform: translateY(0);
}

.uni-bottom-sheet-header {
    padding: 12px 20px 8px;
    position: relative;
    text-align: center;
}

.uni-bottom-sheet-drag {
    width: 40px;
    height: 4px;
    background: #ddd;
    border-radius: 2px;
    margin: 0 auto 12px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.uni-bottom-sheet-drag:active {
    background: #bbb;
}

.uni-bottom-sheet-title {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.uni-bottom-sheet-title i {
    font-size: 22px;
    color: #dedede;
}

.uni-bottom-sheet-close {
    position: absolute;
    right: 20px;
    top: 18px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.uni-bottom-sheet-close:hover {
    background: #ff6b6b;
}

.uni-bottom-sheet-close:hover i {
    color: #fff;
}

.uni-bottom-sheet-close i {
    font-size: 16px;
    color: #999;
    transition: color 0.2s ease;
}

.uni-bottom-sheet-content {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0 20px;
    max-height: calc(85vh - 80px);
}

.uni-bottom-sheet-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 20px;
    color: #444;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 16px;
}

.uni-bottom-sheet-link:active {
    background: #f8f8f8;
}

.uni-bottom-sheet-link i:first-child {
    width: 24px;
    font-size: 20px;
    color: #0000c7;
}

.uni-bottom-sheet-link span {
    flex: 1;
    text-align: left;
}

.uni-bottom-sheet-link i:last-child {
    font-size: 14px;
    color: #ccc;
}

/* Затемнение фона */
.uni-mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.uni-mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Десктоп: скрываем кнопку и панель */
@media (min-width: 769px) {
    .uni-mobile-nav-compact {
        display: none !important;
    }
    .uni-mobile-bottom-sheet,
    .uni-mobile-nav-overlay {
        display: none !important;
    }
}

/* Мобильные адаптации */
@media (max-width: 768px) {
    .breadcrumb-header-wrapper {
        gap: 10px;
	margin: .5rem 0 1rem 0;
    }
    
    .breadcrumb-header-wrapper h1 {
        font-size: 20px;
    }
    
    .uni-mobile-nav-trigger {
        padding: 6px 14px;
    }
    
    .uni-nav-text {
        font-size: 13px;
    }
    
    .uni-bottom-sheet-link {
        padding: 14px 20px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .breadcrumb-header-wrapper h1 {
        font-size: 18px;
    }
    
    .uni-nav-text {
        font-size: 12px;
    }
    
    .uni-mobile-nav-trigger {
        padding: 5px 12px;
    }
    
    .uni-bottom-sheet-title {
        font-size: 16px;
    }
    
    .uni-bottom-sheet-link {
        padding: 12px 16px;
    }
}
/*конец блока*/

/*Стили Рефералки - страница ссылки и кода реферала*/
.referal-rules-wrapper {
	--rr-primary: #6366f1;
	--rr-primary-dark: #4f46e5;
	--rr-secondary: #ec4899;
	--rr-accent: #8b5cf6;
	--rr-surface: #ffffff;
	--rr-text: #1f2937;
	--rr-text-muted: #6b7280;
	--rr-border: rgba(99, 102, 241, 0.12);
	--rr-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
	--rr-shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
	--rr-radius: 26px;
	--rr-radius-lg: 26px;
	--rr-space-sm: 0.75rem;
	--rr-space-md: 5px;
	--rr-space-lg: 10px;
	--rr-space-xl: 10px;
	--rr-transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	line-height: 1.6;
	color: var(--rr-text);
}

.referal-rules-wrapper * { box-sizing: border-box; }

/* Hero Section */
.referal-rules-hero {
	padding: var(--rr-space-lg) 0 var(--rr-space-md);
	position: relative;
}

.referal-rules-title {
	font-size: clamp(1.75rem, 4vw, 2.5rem);
	font-weight: 800;
	line-height: 1.15;
	margin: 0 0 var(--rr-space-sm);
	background: linear-gradient(135deg, var(--rr-text), var(--rr-primary-dark));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.referal-rules-subtitle {
	font-size: 1.05rem;
	color: var(--rr-text-muted);
}

/* Sections */
.referal-rules-section {
	padding: 15px 25px;
	position: relative;
    background: linear-gradient(135deg, #6b8cff17, #a07eff1c) !important;
    margin-bottom: 1rem;
    border-radius: 26px;
}

.referal-rules-section:last-child {
	border-bottom: none;
}

.referal-rules-section-header {
	text-align: center;
	margin-bottom: var(--rr-space-xl);
}

.referal-rules-section-title {
	font-size: clamp(1.4rem, 3vw, 1.8rem);
	font-weight: 700;
	margin: 0 0 var(--rr-space-sm);
	color: var(--rr-text);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
}

.referal-rules-section-title i { color: var(--rr-primary); }

.referal-rules-section-subtitle {
	font-size: 0.95rem;
	color: var(--rr-text-muted);
	max-width: 550px;
	margin: 0 auto;
}

/* Cards */
.referal-rules-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: var(--rr-space-lg);
	margin-bottom: var(--rr-space-lg);
}

.referal-rules-card {
	background: linear-gradient(135deg,rgba(107,140,255,.1),rgba(160,126,255,.1));
	border-radius: var(--rr-radius-lg);
	overflow: hidden;
	transition: var(--rr-transition);
}

.referal-rules-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--rr-shadow-lg);
}

.referal-rules-card-header {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 1rem 1.25rem;
}

.referal-rules-card-icon {
	font-size: 1.25rem;
	color: var(--rr-primary);
}

.referal-rules-card-title {
	font-size: 1rem;
	font-weight: 600;
	margin: 0;
	color: var(--rr-text);
}

.referal-rules-card-body { padding: 1.25rem; }

/* Copy Field - Icon only */
.referal-rules-copy-field-icon {
	display: flex;
	gap: 0.5rem;
	align-items: center;
}

.referal-rules-copy-input {
	flex: 1;
	padding: 0.75rem 1rem;
	border: 1px solid var(--rr-border);
	border-radius: 26px;
	font-size: 0.875rem;
	font-family: 'SF Mono', 'Monaco', monospace;
	color: var(--rr-text);
	transition: var(--rr-transition);
}

.referal-rules-copy-input:focus {
	outline: none;
	border-color: var(--rr-primary);
	box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.referal-rules-copy-btn-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background: var(--rr-primary);
	color: white;
	border: none;
	border-radius: 26px;
	font-size: 1rem;
	cursor: pointer;
	transition: var(--rr-transition);
}

.referal-rules-copy-btn-icon:hover {
	background: var(--rr-primary-dark);
	transform: translateY(-1px);
}

.referal-rules-copy-btn-icon.copied {
	background: #10b981;
}

.referal-rules-hint {
	font-size: 0.75rem;
	color: var(--rr-text-muted);
	margin: 0.75rem 0 0;
}

/* Two Columns Layout */
.referal-rules-two-columns {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--rr-space-lg);
}

/* Manual Way */
.referal-rules-manual,
.referal-rules-generator {
	background: linear-gradient(135deg,rgba(107,140,255,.1),rgba(160,126,255,.1));
	border-radius: var(--rr-radius-lg);
	padding: var(--rr-space-lg);
	transition: var(--rr-transition);
	display: flex;
	gap: 1rem;
}

.referal-rules-manual:hover,
.referal-rules-generator:hover {
	transform: translateY(-4px);
	box-shadow: var(--rr-shadow-lg);
}

.referal-rules-manual-icon,
.referal-rules-generator-icon {
	width: 48px;
	height: 48px;
	background: linear-gradient(135deg, #6366f142, #8b5cf630);
	border-radius: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.25rem;
	color: white;
	flex-shrink: 0;
}

.referal-rules-manual-content,
.referal-rules-generator-content {
	flex: 1;
}

.referal-rules-manual-title,
.referal-rules-generator-title {
	font-size: 1.1rem;
	font-weight: 600;
	margin: 0 0 0.5rem;
	color: var(--rr-text);
}

.referal-rules-manual-desc,
.referal-rules-generator-desc {
	font-size: 0.9rem;
	color: var(--rr-text-muted);
	margin: 0 0 0.75rem;
}

.referal-rules-manual-example {
	background: rgba(99, 102, 241, 0.04);
	border-radius: 8px;
	padding: 0.5rem 0.75rem;
	font-family: monospace;
	font-size: 0.8rem;
	word-break: break-all;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.referal-rules-manual-example i {
	color: var(--rr-primary);
	font-size: 0.8rem;
}

.referal-rules-manual-example strong {
	color: var(--rr-primary);
}

/* Generator inside two columns */
.referal-rules-generator-input {
	display: flex;
	gap: 0.5rem;
	margin-bottom: 0.75rem;
}

.referal-rules-generator-field {
	flex: 1;
	padding: 0.75rem 1rem;
	border: 1px solid var(--rr-border);
	border-radius: 26px;
	font-size: 0.85rem;
	color: var(--rr-text);
}

.referal-rules-generator-field:focus {
	outline: none;
	border-color: var(--rr-primary);
	box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.referal-rules-generator-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.75rem 1.25rem;
	background: linear-gradient(135deg, var(--rr-primary), var(--rr-accent));
	color: white;
	border: none;
	border-radius: 26px;
	font-weight: 600;
	font-size: 0.85rem;
	cursor: pointer;
	transition: var(--rr-transition);
	white-space: nowrap;
}

.referal-rules-generator-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.referal-rules-generator-result {
	background: rgba(16, 185, 129, 0.08);
	border-radius: 10px;
	padding: 0.75rem;
	margin-top: 0.5rem;
}

.referal-rules-generator-result-header {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.8rem;
	font-weight: 600;
	color: #065f46;
	margin-bottom: 0.5rem;
}

.referal-rules-generator-result-header i { color: #10b981; }

/* Links Section */
.referal-rules-links {
	display: flex;
	flex-wrap: wrap;
	gap: var(--rr-space-md);
	justify-content: space-between;
}

.referal-rules-link-item {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 1rem 1.5rem;
	background: var(--rr-surface);
	border: 1px solid var(--rr-border);
	border-radius: var(--rr-radius);
	transition: var(--rr-transition);
}

.referal-rules-link-item:hover {
	transform: translateY(-2px);
	box-shadow: var(--rr-shadow);
	border-color: var(--rr-primary);
}

.referal-rules-link-item i {
	font-size: 1.25rem;
	color: var(--rr-primary);
}

.referal-rules-link-content {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.referal-rules-link-text {
	font-size: 0.9rem;
	font-weight: 500;
	color: var(--rr-text);
}

.referal-rules-link-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.4rem 1rem;
	background: rgba(99, 102, 241, 0.08);
	color: var(--rr-primary);
	border: none;
	border-radius: 20px;
	font-size: 0.8rem;
	font-weight: 500;
	text-decoration: none;
	cursor: pointer;
	transition: var(--rr-transition);
}

.referal-rules-link-btn i {
	font-size: 0.7rem;
	color: var(--rr-primary);
}

.referal-rules-link-btn:hover {
	background: var(--rr-primary);
	color: white;
}

.referal-rules-link-btn:hover i {
	color: white;
}

/* Conditions */
.referal-rules-conditions {
	background: var(--rr-surface);
	border-radius: var(--rr-radius-lg);
	padding: var(--rr-space-lg);
	box-shadow: var(--rr-shadow);
	border: 1px solid var(--rr-border);
}

.referal-rules-condition-item {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
	padding: 1rem;
	border-bottom: 1px dashed var(--rr-border);
	transition: var(--rr-transition);
}

.referal-rules-condition-item:last-child { border-bottom: none; }
.referal-rules-condition-item:hover { background: rgba(99, 102, 241, 0.03); }

.referal-rules-condition-check {
	width: 24px;
	height: 24px;
	background: linear-gradient(135deg, var(--rr-primary), var(--rr-accent));
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	font-size: 0.75rem;
	flex-shrink: 0;
	margin-top: 2px;
}

.referal-rules-condition-text {
	font-size: 0.95rem;
	color: var(--rr-text);
	line-height: 1.6;
}

.referal-rules-condition-text strong { display: block; margin-bottom: 0.25rem; }

/* Earnings */
.referal-rules-earnings {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: var(--rr-space-lg);
	margin-bottom: var(--rr-space-lg);
}

.referal-rules-earning-card {
	background: var(--rr-surface);
	border-radius: var(--rr-radius-lg);
	padding: var(--rr-space-lg);
	border: 2px solid transparent;
	transition: var(--rr-transition);
	position: relative;
	overflow: hidden;
	text-align: center;
}

.referal-rules-earning-card::before {
	content: '';
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--rr-primary), var(--rr-secondary));
	transform: scaleX(0);
	transition: transform 0.3s ease;
}

.referal-rules-earning-card:hover::before { transform: scaleX(1); }
.referal-rules-earning-card:hover { transform: translateY(-4px); box-shadow: var(--rr-shadow-lg); }

.referal-rules-earning-featured {
	border-color: var(--rr-primary);
	background: linear-gradient(135deg, rgba(99,102,241,0.04), rgba(236,72,153,0.04));
}

.referal-rules-earning-badge {
	position: absolute;
	top: 1rem;
	right: -2rem;
	background: var(--rr-secondary);
	color: white;
	padding: 0.25rem 2.5rem;
	font-size: 0.75rem;
	font-weight: 600;
	transform: rotate(45deg);
}

.referal-rules-earning-icon {
	width: 56px;
	height: 56px;
	background: linear-gradient(135deg, var(--rr-primary), var(--rr-accent));
	border-radius: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.5rem;
	color: white;
	margin: 0 auto var(--rr-space-md);
}

.referal-rules-earning-title {
	font-size: 1.25rem;
	font-weight: 700;
	margin: 0 0 0.5rem;
}

.referal-rules-earning-percent {
	font-size: 2.5rem;
	font-weight: 800;
	background: linear-gradient(135deg, var(--rr-primary), var(--rr-secondary));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	margin: 0 0 0.75rem;
}

.referal-rules-earning-desc {
	color: var(--rr-text-muted);
	font-size: 0.95rem;
	line-height: 1.6;
}

/* Example Box */
.referal-rules-example-box {
	display: flex;
	align-items: center;
	gap: 1rem;
	background: rgba(99, 102, 241, 0.06);
	border-radius: var(--rr-radius);
	padding: 1rem 1.25rem;
	color: var(--rr-text);
}

.referal-rules-example-box i {
	font-size: 1.5rem;
	color: var(--rr-primary);
}

.referal-rules-highlight-value {
	color: var(--rr-primary);
	font-weight: 700;
}

/* FAQ */
.referal-rules-faq {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.referal-rules-faq-item {
	background: var(--rr-surface);
	border-radius: var(--rr-radius);
	border: 1px solid var(--rr-border);
	overflow: hidden;
	transition: var(--rr-transition);
}

.referal-rules-faq-item:hover { border-color: var(--rr-primary); }

.referal-rules-faq-question {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1rem 1.25rem;
	background: none;
	border: none;
	font-weight: 600;
	font-size: 1rem;
	color: var(--rr-text);
	cursor: pointer;
	text-align: left;
	transition: var(--rr-transition);
}

.referal-rules-faq-question:hover { background: rgba(99, 102, 241, 0.04); }

.referal-rules-faq-icon {
	color: var(--rr-primary);
	transition: transform 0.25s ease;
	font-size: 0.875rem;
}

.referal-rules-faq-item.active .referal-rules-faq-icon {
	transform: rotate(180deg);
}

.referal-rules-faq-answer {
	max-height: 0;
	overflow: hidden;
	padding: 0 1.25rem;
	color: var(--rr-text-muted);
	font-size: 0.95rem;
	line-height: 1.6;
	transition: max-height 0.3s ease, padding 0.3s ease;
}

.referal-rules-faq-item.active .referal-rules-faq-answer {
	max-height: 300px;
	padding: 0 1.25rem 1rem;
}

/* Footer Note */
.referal-rules-footer-note {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: var(--rr-space-md);
	text-align: center;
	font-size: 0.8rem;
	color: var(--rr-text-muted);
	margin-top: var(--rr-space-lg);
    margin-bottom: 2rem;
}

.referal-rules-footer-note i { color: var(--rr-primary); }

/* Utility */
.referal-rules-highlight {
	background: linear-gradient(120deg, rgba(99,102,241,0.12), rgba(236,72,153,0.12));
	padding: 0.15rem 0.5rem;
	border-radius: 6px;
	font-weight: 600;
	color: var(--rr-primary-dark);
}

.referal-rules-code {
	background: rgba(0,0,0,0.06);
	padding: 0.15rem 0.5rem;
	border-radius: 4px;
	font-family: monospace;
	font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {
	:root {
		--rr-space-xl: 2rem;
	}
	.referal-rules-two-columns {
		grid-template-columns: 1fr;
	}
	.referal-rules-manual,
	.referal-rules-generator {
		flex-direction: column;
		text-align: center;
	}
	.referal-rules-manual-icon,
	.referal-rules-generator-icon {
		margin: 0 auto;
	}
	.referal-rules-manual-example {
		flex-direction: column;
		text-align: center;
	}
	.referal-rules-generator-input {
		flex-direction: column;
	}
	.referal-rules-generator-btn {
		justify-content: center;
	}
	.referal-rules-link-item {
		flex: 1;
		min-width: 250px;
	}
	.referal-rules-link-content {
		flex-wrap: wrap;
		justify-content: center;
	}
}

@media (min-width: 640px) and (max-width: 768px) {
	.referal-rules-generator-input {
		flex-direction: column;
	}
}

/* OpenCart compatibility */
#content .referal-rules-wrapper { width: 100%; }
#content .referal-rules-wrapper .row,
#content .referal-rules-wrapper .col-* { width: auto; padding: 0; margin: 0; }

/* ============================================
   Отключение hover эффектов на touch-экранах
   ============================================ */

@media (hover: none) and (pointer: coarse) {
	.referal-rules-card:hover,
	.referal-rules-manual:hover,
	.referal-rules-generator:hover,
	.referal-rules-earning-card:hover,
	.referal-rules-link-item:hover,
	.referal-rules-condition-item:hover {
		transform: none;
		box-shadow: none;
	}
	
	.referal-rules-card:hover {
		box-shadow: none;
	}
	
	.referal-rules-manual:hover,
	.referal-rules-generator:hover {
		transform: none;
		box-shadow: none;
	}
	
	.referal-rules-earning-card:hover::before {
		transform: scaleX(0);
	}
	
	.referal-rules-earning-card:hover {
		transform: none;
		box-shadow: none;
	}
	
	.referal-rules-link-item:hover {
		transform: none;
		box-shadow: none;
		border-color: var(--rr-border);
	}
	
	.referal-rules-condition-item:hover {
		background: transparent;
	}
	
	.referal-rules-copy-btn-icon:hover {
		transform: none;
	}
	
	.referal-rules-generator-btn:hover {
		transform: none;
	}
	
	.referal-rules-faq-question:hover {
		background: transparent;
	}
	
	.referal-rules-faq-item:hover {
		border-color: var(--rr-border);
	}
	
	.referal-rules-link-btn:hover {
		background: rgba(99, 102, 241, 0.08);
		color: var(--rr-primary);
	}
	
	.referal-rules-link-btn:hover i {
		color: var(--rr-primary);
	}
}
/*Конец блока реферала и кода*/
/*Стили страницы истории начислений баллов за реф */
:root {
	--primary: #e94560;
	--primary-dark: #c62a47;
	--primary-light: #ff6b6b;
	--success: #10b981;
	--success-light: #d1fae5;
	--danger: #ef4444;
	--danger-light: #fee2e2;
	--dark: #1a1a2e;
	--gray-50: #f8fafc;
	--gray-100: #f1f5f9;
	--gray-200: #e2e8f0;
	--gray-300: #cbd5e1;
	--gray-500: #64748b;
	--gray-600: #475569;
	--gray-800: #1e293b;
	--shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
	--shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
	--shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
	--radius-sm: 0.5rem;
	--radius-md: 0.75rem;
	--radius-lg: 1rem;
	--radius-xl: 1.5rem;
}

/* ===== Карточка баланса ===== */
.balance-card {
	background: linear-gradient(135deg, var(--dark) 0%, #16213e 100%);
	border-radius: var(--radius-xl);
	padding: 1.5rem;
	margin-bottom: 2rem;
	display: flex;
	align-items: center;
	gap: 1.25rem;
	color: white;
	box-shadow: var(--shadow-md);
}

.balance-card__icon {
	font-size: 2.5rem;
	background: rgba(255,255,255,0.15);
	width: 64px;
	height: 64px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
}

.balance-card__content {
	flex: 1;
}

.balance-card__label {
	font-size: 0.875rem;
	opacity: 0.8;
	margin-bottom: 0.25rem;
	letter-spacing: 0.5px;
}

.balance-card__value {
	font-size: 2rem;
	font-weight: 700;
	line-height: 1;
}

/* ===== Транзакции ===== */
.transaction-card {
	background: white;
	border-radius: var(--radius-lg);
	padding: 1rem;
	margin-bottom: 1rem;
	display: flex;
	align-items: center;
	gap: 1rem;
	transition: all 0.2s ease;
	border: 1px solid var(--gray-200);
	box-shadow: var(--shadow-sm);
}

.transaction-card:hover {
	transform: translateY(-2px);
	box-shadow: var(--shadow-md);
	border-color: var(--gray-300);
}

/* Дата */
.transaction-card__date {
	width: 56px;
	height: 56px;
	background: var(--gray-100);
	border-radius: var(--radius-md);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	flex-shrink: 0;
}

.transaction-card__date-day {
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--gray-800);
	line-height: 1;
}

.transaction-card__date-month {
	font-size: 0.7rem;
	color: var(--gray-500);
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

/* Информация */
.transaction-card__info {
	flex: 1;
	min-width: 0;
}

.transaction-card__description {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--gray-800);
	margin-bottom: 0.25rem;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.transaction-card__meta {
	font-size: 0.7rem;
	color: var(--gray-500);
}

/* Сумма */
.transaction-card__amount {
	flex-shrink: 0;
	font-weight: 700;
	font-size: 1rem;
}

.amount-positive {
	color: var(--success);
	background: var(--success-light);
	padding: 0.25rem 0.75rem;
	border-radius: 2rem;
	display: inline-block;
}

.amount-negative {
	color: var(--danger);
	background: var(--danger-light);
	padding: 0.25rem 0.75rem;
	border-radius: 2rem;
	display: inline-block;
}

/* Стили для карточек в зависимости от типа (сохранена логика через классы) */
.transaction-card--income {
	border-left: 3px solid var(--success);
}

.transaction-card--expense {
	border-left: 3px solid var(--danger);
}

/* ===== Пустое состояние ===== */
.empty-state {
	text-align: center;
	padding: 3rem 2rem;
	background: var(--gray-50);
	border-radius: var(--radius-xl);
	border: 1px solid var(--gray-200);
}

.empty-state__icon {
	font-size: 4rem;
	margin-bottom: 1rem;
	opacity: 0.5;
}

.empty-state__text {
	font-size: 1rem;
	color: var(--gray-600);
	margin-bottom: 1.5rem;
}

.empty-state__btn {
	display: inline-block;
	padding: 0.75rem 1.5rem;
	background: var(--primary);
	color: white;
	border-radius: var(--radius-md);
	text-decoration: none;
	font-weight: 500;
	transition: all 0.2s ease;
}

.empty-state__btn:hover {
	background: var(--primary-dark);
	transform: translateY(-1px);
}

/* ===== Пагинация ===== */
.pagination {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 1.5rem 0 1rem;
}

.pagination li {
	display: inline-block;
}

.pagination a,
.pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 0.75rem;
	background: white;
	border: 1px solid var(--gray-200);
	border-radius: var(--radius-sm);
	color: var(--gray-700);
	font-size: 0.875rem;
	text-decoration: none;
	transition: all 0.2s ease;
}

.pagination a:hover {
	background: var(--gray-100);
	border-color: var(--gray-300);
}

.pagination .active span {
	background: var(--primary);
	border-color: var(--primary);
	color: white;
}

.pagination-text {
	text-align: center;
	font-size: 0.813rem;
	color: var(--gray-500);
	margin-top: 1rem;
}

/* ===== Адаптивность ===== */
@media (max-width: 768px) {
	.balance-card {
		padding: 1.25rem;
	}
	
	.balance-card__icon {
		width: 48px;
		height: 48px;
		font-size: 1.75rem;
	}
	
	.balance-card__value {
		font-size: 1.5rem;
	}
	
	.transaction-card {
		padding: 0.875rem;
		gap: 0.75rem;
	}
	
	.transaction-card__date {
		width: 48px;
		height: 48px;
	}
	
	.transaction-card__date-day {
		font-size: 1rem;
	}
	
	.transaction-card__description {
		font-size: 0.813rem;
		white-space: normal;
		word-break: break-word;
	}
	
	.amount-positive,
	.amount-negative {
		padding: 0.188rem 0.625rem;
		font-size: 0.875rem;
	}
	
	.pagination a,
	.pagination span {
		min-width: 32px;
		height: 32px;
		font-size: 0.813rem;
	}
}

/* ===== Планшеты ===== */
@media (min-width: 769px) and (max-width: 1024px) {
	.transaction-card__description {
		font-size: 0.813rem;
	}
}

/* ===== Тёмная тема ===== */
@media (prefers-color-scheme: dark) {
	.transaction-card {
		background: #1e293b;
		border-color: #334155;
	}
	
	.transaction-card__description {
		color: #f1f5f9;
	}
	
	.transaction-card__date {
		background: #0f172a;
	}
	
	.transaction-card__date-day {
		color: #e2e8f0;
	}
	
	.transaction-card__date-month {
		color: #94a3b8;
	}
	
	.pagination a,
	.pagination span {
		background: #1e293b;
		border-color: #334155;
		color: #cbd5e1;
	}
	
	.pagination a:hover {
		background: #334155;
	}
	
	.empty-state {
		background: #1e293b;
		border-color: #334155;
	}
	
	.empty-state__text {
		color: #94a3b8;
	}
}

/* ===== Анимация загрузки ===== */
@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.transaction-card {
	animation: fadeInUp 0.3s ease forwards;
}

.row-flex [class*="col-"]:nth-child(n) .transaction-card {
	animation-delay: calc(var(--index, 0) * 0.05s);
}
/*конец блока страницы реф */
/* СТИЛИ ДЛЯ СОВРЕМЕННОЙ ТАБЛИЦЫ ЗАКАЗОВ */

.modern-orders-table {
	/* Сброс глобальных влияний */
	margin-bottom: 1.5rem;
}

/* Десктопная таблица */
.modern-orders-table .table-responsive {
	border-radius: 20px;
	overflow: auto;
	background: transparent;
}

.modern-orders-table .table {
	width: 100%;
	background: white;
	border-collapse: separate;
	border-spacing: 0;
	margin-bottom: 0;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* Заголовок */
.modern-orders-table .table thead tr {
	background: #f8fafc;
}

.modern-orders-table .table thead td {
	padding: 16px 20px;
	font-size: 0.75rem;
	font-weight: 600;
	color: #64748b;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	border: none;
	border-bottom: 1px solid #e2e8f0;
	background: #f8fafc;
}

/* Ячейки тела таблицы */
.modern-orders-table .table tbody td {
	padding: 16px 20px;
	font-size: 0.875rem;
	color: #334155;
	border: none;
	border-bottom: 1px solid #f1f5f9;
	vertical-align: middle;
	background: white;
}

/* Последняя строка без нижней границы */
.modern-orders-table .table tbody tr:last-child td {
	border-bottom: none;
}

/* Hover-эффект */
.modern-orders-table .table tbody tr:hover td {
	background: #fafcff;
}

/* Номер заказа */
.modern-orders-table .table tbody td:first-child {
	font-family: 'SF Mono', 'Monaco', 'Cascadia Code', monospace;
	font-weight: 700;
	color: #e94560;
	font-size: 0.9rem;
}

/* Сумма заказа */
.modern-orders-table .table tbody td:nth-child(3) {
	font-weight: 600;
	color: #1e293b;
}

/* Статус */
.modern-orders-table .table tbody td:nth-child(4) {
	font-weight: 500;
}

/* Комиссия */
.modern-orders-table .table tbody td:nth-child(5) {
	font-weight: 700;
	color: #10b981;
	font-size: 0.9rem;
}

/* ===== Мобильная версия (≤768px) ===== */
@media (max-width: 768px) {
	.modern-orders-table .table,
	.modern-orders-table .table tbody,
	.modern-orders-table .table tr,
	.modern-orders-table .table td {
		display: block;
	}
	
	.modern-orders-table .table thead {
		display: none;
	}
	
	.modern-orders-table .table tr {
		margin-bottom: 16px;
		background: white;
		border-radius: 16px;
		box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
		overflow: hidden;
	}
	
	.modern-orders-table .table td {
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding: 12px 16px;
		border: none;
		border-bottom: 1px solid #f1f5f9;
		text-align: right !important;
		gap: 16px;
	}
	
	.modern-orders-table .table td:last-child {
		border-bottom: none;
	}
	
	/* Псевдоэлемент с названием поля */
	.modern-orders-table .table td::before {
		content: attr(data-label);
		font-size: 0.7rem;
		font-weight: 600;
		color: #64748b;
		text-transform: uppercase;
		letter-spacing: 0.03em;
		flex-shrink: 0;
	}
	
	/* Значение справа */
	.modern-orders-table .table td > * {
		text-align: right;
	}
	
	/* Цвета на мобилке */
	.modern-orders-table .table tbody td:first-child {
		color: #e94560;
	}
	
	.modern-orders-table .table tbody td:nth-child(3) {
		font-weight: 600;
		color: #1e293b;
	}
	
	.modern-orders-table .table tbody td:nth-child(5) {
		color: #10b981;
	}
}

/* ===== Планшеты (769px - 1024px) ===== */
@media (min-width: 769px) and (max-width: 1024px) {
	.modern-orders-table .table thead td {
		padding: 12px 12px;
		font-size: 0.7rem;
	}
	
	.modern-orders-table .table tbody td {
		padding: 12px 12px;
		font-size: 0.8rem;
	}
}

/* ===== Тёмная тема ===== */
@media (prefers-color-scheme: dark) {
	.modern-orders-table .table {
		background: #1e293b;
		box-shadow: none;
	}
	
	.modern-orders-table .table thead tr {
		background: #0f172a;
	}
	
	.modern-orders-table .table thead td {
		background: #0f172a;
		color: #94a3b8;
		border-bottom-color: #334155;
	}
	
	.modern-orders-table .table tbody td {
		background: #1e293b;
		color: #cbd5e1;
		border-bottom-color: #334155;
	}
	
	.modern-orders-table .table tbody tr:hover td {
		background: #0f172a;
	}
	
	.modern-orders-table .table tbody td:first-child {
		color: #ff6b6b;
	}
	
	.modern-orders-table .table tbody td:nth-child(3) {
		color: #f1f5f9;
	}
	
	@media (max-width: 768px) {
		.modern-orders-table .table tr {
			background: #1e293b;
			box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
		}
		
		.modern-orders-table .table td {
			border-bottom-color: #334155;
		}
		
		.modern-orders-table .table td::before {
			color: #94a3b8;
		}
	}
}
/*Конец блока истории заказов рефа */
/*Конец всего блока реферального кабинета */