/* =========================================
   ГЛОБАЛЬНІ НАЛАШТУВАННЯ ТА СКРОЛБАРИ
   ========================================= */
::-webkit-scrollbar { display: none !important; width: 0 !important; height: 0 !important; }
* { -ms-overflow-style: none !important; scrollbar-width: none !important; }

.top-spacing { height: 40px; }

/* =========================================
   ШАПКА (HERO БЛОК)
   ========================================= */
.catalog-header-card {
    padding: 40px;
    margin-bottom: 40px;
    text-align: center;
}

.catalog-header-content {
    max-width: 600px;
    margin: 0 auto;
}

.catalog-header-content h1 {
    font-size: 2.5rem;
    font-weight: 900;
    color: #fff;
    margin: 15px 0;
}

.section-badge {
    display: inline-block;
    background: rgba(249, 115, 22, 0.1);
    color: #f97316;
    padding: 6px 14px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
}

.text-formatted {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.status-chips {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 25px;
}

.status-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
}

.status-chip.highlight { color: #f97316; }
.status-chip.warning { color: #f59e0b; }

/* =========================================
   GLASSMORPHISM ПАНЕЛІ
   ========================================= */
.glass-panel {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
}

/* =========================================
   СІТКА СТОРІНКИ (ФОРМА ТА СПИСОК)
   ========================================= */
.complaints-layout {
    display: grid;
    grid-template-columns: 360px 1fr; /* Форма зліва (360px), стрічка відгуків справа */
    gap: 40px;
    align-items: start;
}

/* =========================================
   ЛІВА КОЛОНКА (ФОРМА)
   ========================================= */
.sticky-panel {
    position: sticky;
    top: 20px;
}

.complaint-form-panel {
    padding: 30px;
}

.panel-header {
    margin-bottom: 25px;
}

.panel-header h2,
.panel-header h3 {
    margin: 10px 0 0 0;
    color: #fff;
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 14px 16px;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #f97316;
}

textarea.form-control {
    resize: none;
}

.form-hint-note {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 25px;
    line-height: 1.4;
}

.full-width { width: 100%; }

.btn-primary {
    background: #f97316;
    color: #fff;
    border: none;
    padding: 16px 24px;
    border-radius: 14px;
    font-weight: 800;
    font-size: 1.05rem;
    cursor: pointer;
    text-align: center;
    transition: 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.4);
}

/* =========================================
   ПРАВА КОЛОНКА (ВІДГУКИ)
   ========================================= */
.complaints-feed-header {
    margin-bottom: 30px;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comment-item {
    padding: 25px;
    transition: border-color 0.3s;
}

.comment-item:hover {
    border-color: rgba(249, 115, 22, 0.2);
}

.comment-head {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.comment-avatar {
    width: 46px;
    height: 46px;
    background: rgba(249, 115, 22, 0.15);
    color: #f97316;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.comment-meta strong {
    display: block;
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 2px;
}

.comment-meta span {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

.comment-text {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Відповідь Адміністратора */
.admin-reply-box {
    margin-top: 20px;
    background: rgba(249, 115, 22, 0.05);
    border: 1px solid rgba(249, 115, 22, 0.15);
    padding: 20px;
    border-radius: 16px;
}

.admin-reply-title {
    color: #f97316;
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-reply-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.6;
}

/* =========================================
   ПОРОЖНІЙ СТАН
   ========================================= */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state-icon {
    width: 100px;
    height: 100px;
    background: rgba(249, 115, 22, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.empty-state h3 {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 15px;
}

/* =========================================
   АДАПТАЦІЯ (МОБІЛЬНІ ПРИСТРОЇ)
   ========================================= */
@media (max-width: 992px) {
    .complaints-layout {
        grid-template-columns: 1fr; /* Перехід в 1 колонку */
        gap: 30px;
    }
    
    /* Форма знаходиться першою в HTML, тому вона автоматично буде ЗВЕРХУ на телефоні */
    .sticky-panel {
        position: static;
    }
}

@media (max-width: 768px) {
    .catalog-header-card { padding: 30px 20px; }
    .catalog-header-content h1 { font-size: 2rem; }
    .complaint-form-panel { padding: 20px; }
    .comment-item { padding: 20px; }
}