/* =========================================
   ГЛОБАЛЬНІ НАЛАШТУВАННЯ ТА СКРОЛБАРИ
   ========================================= */
::-webkit-scrollbar { display: none !important; width: 0 !important; height: 0 !important; }
* { -ms-overflow-style: none !important; scrollbar-width: none !important; }

.top-spacing { height: 40px; }

/* =========================================
   ЗАГАЛЬНА СІТКА (GLASSMORPHISM)
   ========================================= */
.glass-panel {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
}

.auth-grid-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    padding: 50px;
    align-items: start;
    max-width: 1100px;
    margin: 0 auto 50px;
}

.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;
    margin-bottom: 15px;
}

h2 {
    font-size: 2.2rem;
    font-weight: 900;
    color: #fff;
    margin: 0 0 15px;
}

.text-formatted {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* =========================================
   ЛІВА КОЛОНКА (ІНФОРМАЦІЯ)
   ========================================= */
.auth-points-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 30px 0;
}

.auth-point-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.auth-point-icon {
    width: 48px;
    height: 48px;
    background: rgba(249, 115, 22, 0.1);
    color: #f97316;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.auth-point-text strong {
    display: block;
    color: #fff;
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.auth-point-text small {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Блок контактів */
.support-contact-box {
    padding: 25px;
    margin-bottom: 25px;
}

.trust-contact-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.trust-contact-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.trust-contact-label {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
}

.trust-contact-value {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
}

.highlight-text { color: #f97316; }

/* =========================================
   ПРАВА КОЛОНКА (ФОРМА)
   ========================================= */
.auth-form-col {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 20px;
}

.auth-form-head { margin-bottom: 30px; }

.form-row-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.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(255, 255, 255, 0.03);
    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: 0.3s;
}

.form-control:focus { outline: none; border-color: #f97316; background: rgba(255, 255, 255, 0.05); }
textarea.form-control { resize: none; }

.support-info-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(255, 255, 255, 0.03);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 25px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
}

.support-info-alert svg { color: #f97316; flex-shrink: 0; margin-top: 2px; }

/* =========================================
   КНОПКИ
   ========================================= */
.full-width { width: 95%; }

.btn-lg {
    padding: 18px 24px;
    border-radius: 14px;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary { background: #f97316; color: #fff; border: none; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(249, 115, 22, 0.4); }

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 14px;
    border-radius: 12px;
    font-weight: 600;
}

.btn-secondary:hover { border-color: #f97316; background: rgba(255, 255, 255, 0.08); }

/* =========================================
   АДАПТАЦІЯ
   ========================================= */
@media (max-width: 992px) {
    .auth-grid-card { grid-template-columns: 1fr; padding: 30px; gap: 40px; }
}

@media (max-width: 640px) {
    .auth-grid-card { padding: 20px; border: none; background: transparent; }
    .auth-form-col { padding: 25px 20px; }
    h2 { font-size: 1.8rem; }
    .form-row-grid { grid-template-columns: 1fr; gap: 0; }
}

/* --- СТИЛІ ЧАТУ --- */
.chat-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 20px 0;
    padding-bottom: 20px;
}

.chat-message {
    display: flex;
    flex-direction: column;
    max-width: 85%;
}

.msg-info {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.msg-bubble {
    padding: 14px 18px;
    border-radius: 18px;
    line-height: 1.6;
    font-size: 0.95rem;
    word-wrap: break-word;
}

/* Повідомлення від адміна (Зліва) */
.msg-admin {
    align-self: flex-start;
}

.msg-admin .msg-bubble {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    border-bottom-left-radius: 4px;
}

/* Повідомлення від користувача (Справа) */
.msg-user {
    align-self: flex-end;
    align-items: flex-end;
}

.msg-user .msg-bubble {
    background: rgba(249, 115, 22, 0.1);
    border: 1px solid rgba(249, 115, 22, 0.3);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.chat-reply-form {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.chat-closed-alert {
    justify-content: center;
    margin-top: 20px;
}

/* Сайдбар деталі */
.ticket-info-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 1px;
    font-weight: 700;
}

.info-value {
    color: #fff;
    font-size: 1rem;
    word-break: break-all;
}

.support-sidebar-note {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 10px;
    color: rgba(255, 255, 255, 0.4);
}

.support-sidebar-note p {
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.5;
}

.support-sidebar-note svg {
    flex-shrink: 0;
    color: #f97316;
}

@media (max-width: 768px) {
    .chat-message { max-width: 95%; }
    .msg-bubble { padding: 12px 15px; font-size: 0.9rem; }
}
