/* Pixel3DLab visual polish v11
   Calm surfaces, subtle separators and responsive full-screen chat. No glow effects. */

/* Forum overview and category lists */
body.pxh-page-forum .pxh-legacy-forum .card.border-blue,
body.pxh-page-forum_category .pxh-legacy-forum .card.border-blue,
body.pxh-page-forum_topic .pxh-legacy-forum .card.border-blue {
    border: 1px solid var(--border-color, rgba(100,116,139,.20)) !important;
    border-radius: 15px !important;
    background: var(--card-bg, #fff) !important;
    box-shadow: 0 3px 12px rgba(15,23,42,.045) !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}
body.pxh-page-forum .pxh-legacy-forum .card.border-blue,
body.pxh-page-forum_category .pxh-legacy-forum .card.border-blue { padding: clamp(16px, 2.4vw, 26px) !important; }
body.pxh-page-forum .pxh-legacy-forum .card.border-blue > div[style*="border: 1px solid"],
body.pxh-page-forum_category .pxh-legacy-forum .card.border-blue > div[style*="border: 1px solid"] {
    border-color: var(--border-color, rgba(100,116,139,.18)) !important;
    border-radius: 12px !important;
    background: var(--card-bg, #fff) !important;
}
body.pxh-page-forum .forum-header-flex,
body.pxh-page-forum_category .forum-header-flex { margin-bottom: 16px !important; }
body.pxh-page-forum .forum-header-flex h2,
body.pxh-page-forum_category .forum-header-flex h2 { font-size: clamp(20px, 2vw, 25px) !important; letter-spacing: -.025em; }
body.pxh-page-forum .forum-list-item,
body.pxh-page-forum_category .forum-list-item {
    gap: 13px !important;
    padding: 15px 16px !important;
    background: transparent !important;
    border-bottom: 1px solid var(--border-color, rgba(100,116,139,.16)) !important;
    transition: background-color .15s ease, border-color .15s ease !important;
}
body.pxh-page-forum .forum-list-item::before,
body.pxh-page-forum_category .forum-list-item::before { display: none !important; }
body.pxh-page-forum .forum-list-item:hover,
body.pxh-page-forum .forum-list-item:focus-visible,
body.pxh-page-forum_category .forum-list-item:hover,
body.pxh-page-forum_category .forum-list-item:focus-visible {
    background: rgba(59,130,196,.055) !important;
    box-shadow: none !important; border-bottom-color: rgba(59,130,196,.28) !important;
}
body.pxh-page-forum .forum-icon-box,
body.pxh-page-forum_category .forum-icon-box {
    width: 42px !important; height: 42px !important; flex-basis: 42px !important;
    border-radius: 11px !important; box-shadow: none !important;
    background: rgba(59,130,196,.075) !important; border-color: rgba(59,130,196,.16) !important;
}
body.pxh-page-forum .forum-icon-box svg,
body.pxh-page-forum_category .forum-icon-box svg { width: 19px; height: 19px; }
body.pxh-page-forum .forum-list-item h4,
body.pxh-page-forum_category .forum-list-item h4 { margin-bottom: 4px !important; font-size: 14px !important; line-height: 1.4 !important; color: var(--text-main, #263447) !important; }
body.pxh-page-forum .forum-list-item p,
body.pxh-page-forum_category .forum-list-item p { font-size: 12px !important; line-height: 1.45 !important; }
body.pxh-page-forum .f-stats,
body.pxh-page-forum_category .f-stats { flex-basis: 112px; min-width: 112px; font-size: 11px !important; line-height: 1.6; }
body.pxh-page-forum .f-stats strong,
body.pxh-page-forum_category .f-stats strong { font-weight: 800; }
body.pxh-page-forum .pxh-legacy-forum .btn,
body.pxh-page-forum_category .pxh-legacy-forum .btn,
body.pxh-page-forum_topic .pxh-legacy-forum .btn { box-shadow: none !important; filter: none !important; }
body.pxh-page-forum .pxh-legacy-forum .btn:hover,
body.pxh-page-forum_category .pxh-legacy-forum .btn:hover,
body.pxh-page-forum_topic .pxh-legacy-forum .btn:hover { box-shadow: none !important; filter: brightness(.98) !important; transform: none !important; }

/* Topic detail: stronger separation between author and message, less empty height. */
body.pxh-page-forum_topic .pxh-legacy-forum .card.border-blue { padding: clamp(17px, 2.5vw, 28px) !important; padding-bottom: 8px !important; }
body.pxh-page-forum_topic .forum-header-flex { align-items: center !important; margin-bottom: 14px !important; }
body.pxh-page-forum_topic .forum-post {
    display: grid !important;
    grid-template-columns: minmax(124px, 150px) minmax(0, 1fr) !important;
    align-items: start !important;
    gap: clamp(14px, 2.3vw, 24px) !important;
    padding: 21px 0 !important;
    margin: 0 !important;
    border-bottom: 1px solid var(--border-color, rgba(100,116,139,.17)) !important;
}
body.pxh-page-forum_topic .forum-user-col {
    display: flex !important; flex-direction: column !important; align-items: flex-start !important;
    flex: initial !important; width: auto !important; min-width: 0 !important;
    padding: 0 16px 0 0 !important; border-right: 1px solid var(--border-color, rgba(100,116,139,.16)) !important;
    text-align: left !important; gap: 7px !important;
}
body.pxh-page-forum_topic .forum-user-col > a { display: flex !important; flex-direction: column !important; align-items: flex-start !important; gap: 8px !important; min-width: 0 !important; }
body.pxh-page-forum_topic .forum-user-col > a h4 { margin: 0 !important; font-size: 14px !important; line-height: 1.35 !important; }
body.pxh-page-forum_topic .forum-avatar {
    flex: 0 0 54px !important; width: 54px !important; height: 54px !important; min-width: 54px !important;
    margin: 0 !important; border-radius: 12px !important; border: 1px solid var(--border-color, rgba(100,116,139,.16)) !important;
    box-shadow: none !important; overflow: hidden !important;
}
body.pxh-page-forum_topic .forum-avatar img { display: block !important; width: 100% !important; height: 100% !important; max-width: 100% !important; max-height: 100% !important; object-fit: cover !important; border-radius: inherit !important; }
body.pxh-page-forum_topic .forum-content-col { min-width: 0 !important; width: 100% !important; }
body.pxh-page-forum_topic .forum-content-col > div[style*="border-bottom: 1px solid"] { align-items: center !important; margin-bottom: 10px !important; padding-bottom: 9px !important; }
body.pxh-page-forum_topic .forum-content-col > div[style*="min-height: 100px"] { min-height: 0 !important; font-size: 14px !important; line-height: 1.7 !important; padding: 2px 0 8px !important; }
body.pxh-page-forum_topic .forum-signature { margin-top: 10px !important; padding-top: 9px !important; border-top: 1px solid var(--border-color, rgba(100,116,139,.16)) !important; color: var(--text-muted) !important; font-size: 12px !important; }
body.pxh-page-forum_topic .forum-user-col > div { margin: 0 !important; }
body.pxh-page-forum_topic .forum-user-col > div:last-child { font-size: 11px !important; color: var(--text-muted) !important; }
body.pxh-page-forum_topic .forum-header-flex > a { padding: 7px 0; }

/* The order label and back link each take their own line (no sideways drift). */
body.pxh-page-order_chat .pxh-order-chat-heading { align-items: flex-start !important; }
body.pxh-page-order_chat .pxh-order-chat-heading-content { display: flex; flex-direction: column; align-items: flex-start; width: 100%; min-width: 0; }
body.pxh-page-order_chat .pxh-chat-type-label.is-order { display: flex !important; width: fit-content; max-width: 100%; box-sizing: border-box; margin: 0 0 10px !important; }
body.pxh-page-order_chat .pxh-order-back-link { display: inline-flex !important; align-items: center; justify-content: flex-start; gap: 6px; width: fit-content; max-width: 100%; margin: 0 0 12px !important; padding: 0 !important; line-height: 1.45; color: var(--text-muted, #64748b) !important; }
body.pxh-page-order_chat .pxh-order-back-link svg { width: 16px !important; height: 16px !important; flex: 0 0 16px; }
body.pxh-page-order_chat .pxh-order-chat-heading h1 { margin: 0 0 7px !important; overflow-wrap: anywhere; }
body.pxh-page-order_chat .pxh-order-chat-heading p { margin: 0 !important; }

/* Make the request intro/form boundary clean and visually separated. */
body.pxh-page-request .pxh-request-card { max-width: 920px !important; }
body.pxh-page-request .pxh-request-guest-note { margin: 0 0 17px !important; padding: 12px 14px !important; border: 1px solid var(--border-color, rgba(100,116,139,.16)); border-left: 3px solid rgba(59,130,196,.55); border-radius: 9px; background: rgba(100,116,139,.045); }
body.pxh-page-request .pxh-request-form { margin-top: 0 !important; }
body.pxh-page-request .pxh-request-account-note { margin-bottom: 17px !important; }
body.pxh-page-request .pxh-request-grid { row-gap: 13px !important; }

/* Fullscreen mini-chat: on wider displays use a real conversation workspace, not a tiny stacked layout. */
body.pxh-mini-chat-mode.pxh-mini-chat-fullscreen-mode,
body.pxh-mini-chat-mode.pxh-mini-chat-fullscreen-mode #pxh-main-content { width: 100% !important; max-width: none !important; height: 100vh !important; height: 100dvh !important; min-height: 0 !important; overflow: hidden !important; }
body.pxh-mini-chat-mode.pxh-mini-chat-fullscreen-mode .pxh-inner-main { width: 100% !important; max-width: none !important; height: 100vh !important; height: 100dvh !important; min-height: 0 !important; padding: 14px !important; box-sizing: border-box !important; overflow: hidden !important; }
body.pxh-mini-chat-mode.pxh-mini-chat-fullscreen-mode .pxh-inner-container { width: 100% !important; max-width: none !important; height: 100% !important; min-height: 0 !important; margin: 0 !important; }
body.pxh-mini-chat-mode.pxh-mini-chat-fullscreen-mode .pxh-private-chat-layout {
    display: grid !important; grid-template-columns: minmax(205px, 275px) minmax(0, 1fr) !important;
    grid-template-rows: minmax(0, 1fr) !important; flex-direction: initial !important; gap: 14px !important;
    align-items: stretch !important; width: 100% !important; height: 100% !important; min-height: 0 !important;
}
body.pxh-mini-chat-mode.pxh-mini-chat-fullscreen-mode .pxh-chat-contacts {
    display: flex !important; flex-direction: column !important; align-items: stretch !important;
    width: auto !important; height: 100% !important; max-height: none !important; min-height: 0 !important;
    padding: 12px !important; overflow-x: hidden !important; overflow-y: auto !important; box-sizing: border-box !important;
}
body.pxh-mini-chat-mode.pxh-mini-chat-fullscreen-mode .pxh-chat-contacts h2 { display: block !important; margin: 0 0 10px !important; }
body.pxh-mini-chat-mode.pxh-mini-chat-fullscreen-mode .pxh-chat-contact {
    display: flex !important; flex: 0 0 auto !important; width: 100% !important; max-width: none !important;
    min-height: 45px; padding: 8px 9px !important; box-sizing: border-box !important; font-size: 13px !important;
}
body.pxh-mini-chat-mode.pxh-mini-chat-fullscreen-mode .pxh-chat-contact > span:not(.pxh-chat-avatar) { max-width: none !important; white-space: normal !important; overflow-wrap: anywhere; }
body.pxh-mini-chat-mode.pxh-mini-chat-fullscreen-mode .pxh-chat-conversation { display: flex !important; flex-direction: column !important; width: 100% !important; height: 100% !important; min-height: 0 !important; overflow: hidden !important; }
body.pxh-mini-chat-mode.pxh-mini-chat-fullscreen-mode .pxh-chat-conversation .pxh-ticket-messages { flex: 1 1 auto !important; height: auto !important; max-height: none !important; min-height: 0 !important; overflow-y: auto !important; padding: 18px !important; }
body.pxh-mini-chat-mode.pxh-mini-chat-fullscreen-mode .pxh-chat-conversation .pxh-ticket-message { max-width: min(78%, 900px); font-size: 14px !important; }
body.pxh-mini-chat-mode.pxh-mini-chat-fullscreen-mode .pxh-chat-conversation form.pxh-inline-form { padding: 10px !important; }
body.pxh-mini-chat-mode.pxh-mini-chat-fullscreen-mode .pxh-chat-conversation form.pxh-inline-form input[name="message"] { height: 42px !important; min-height: 42px !important; max-height: 42px !important; font-size: 14px !important; }
body.pxh-mini-chat-mode.pxh-mini-chat-fullscreen-mode .pxh-chat-conversation form.pxh-inline-form button[type="submit"] { height: 42px !important; min-height: 42px !important; font-size: 13px !important; }

@media (max-width: 760px) {
    body.pxh-page-forum_topic .forum-post { grid-template-columns: minmax(0,1fr) !important; gap: 12px !important; padding: 17px 0 !important; }
    body.pxh-page-forum_topic .forum-user-col { flex-direction: row !important; align-items: center !important; flex-wrap: wrap; gap: 9px 12px !important; padding: 0 0 12px !important; border-right: 0 !important; border-bottom: 1px solid var(--border-color, rgba(100,116,139,.16)) !important; }
    body.pxh-page-forum_topic .forum-user-col > a { flex-direction: row !important; align-items: center !important; gap: 10px !important; }
    body.pxh-page-forum_topic .forum-avatar { flex-basis: 42px !important; width: 42px !important; height: 42px !important; min-width: 42px !important; }
    body.pxh-page-forum_topic .forum-user-col > div:last-child { margin-left: auto !important; }
    body.pxh-mini-chat-mode.pxh-mini-chat-fullscreen-mode .pxh-inner-main { padding: 8px !important; }
}
@media (max-width: 700px) {
    body.pxh-mini-chat-mode.pxh-mini-chat-fullscreen-mode .pxh-private-chat-layout { grid-template-columns: minmax(0,1fr) !important; grid-template-rows: minmax(0, auto) minmax(0, 1fr) !important; gap: 8px !important; }
    body.pxh-mini-chat-mode.pxh-mini-chat-fullscreen-mode .pxh-chat-contacts { flex-direction: row !important; align-items: center !important; height: auto !important; max-height: 112px !important; overflow-x: auto !important; overflow-y: hidden !important; padding: 6px !important; }
    body.pxh-mini-chat-mode.pxh-mini-chat-fullscreen-mode .pxh-chat-contacts h2 { display: none !important; }
    body.pxh-mini-chat-mode.pxh-mini-chat-fullscreen-mode .pxh-chat-contact { width: auto !important; max-width: 160px !important; min-height: 38px; }
    body.pxh-mini-chat-mode.pxh-mini-chat-fullscreen-mode .pxh-chat-contact > span:not(.pxh-chat-avatar) { max-width: 88px !important; white-space: nowrap !important; overflow: hidden; text-overflow: ellipsis; }
    body.pxh-mini-chat-mode.pxh-mini-chat-fullscreen-mode .pxh-chat-conversation .pxh-ticket-messages { padding: 9px !important; }
    body.pxh-mini-chat-mode.pxh-mini-chat-fullscreen-mode .pxh-chat-conversation .pxh-ticket-message { max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    body.pxh-page-forum .forum-list-item, body.pxh-page-forum_category .forum-list-item { transition: none !important; }
}
