.po-support-page {
    padding-bottom: 56px;
}

.po-support-header {
    display:flex;
    justify-content:space-between;
    align-items:flex-end;
    gap:24px;
    margin-bottom:28px;
}

.po-support-header h1 {
    margin:6px 0 8px;
}

.po-support-header p {
    margin:0;
    opacity:.65;
    max-width:680px;
}

.po-support-new-button {
    flex-shrink:0;
}

.po-support-summary {
    display:grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:16px;
    margin-bottom:28px;
}

.po-support-stat {
    border:1px solid rgba(128,128,128,.18);
    border-radius:16px;
    padding:20px;
    background:rgba(128,128,128,.035);
}

.po-support-stat-label {
    font-size:11px;
    text-transform:uppercase;
    letter-spacing:.7px;
    opacity:.55;
}

.po-support-stat-value {
    font-size:30px;
    font-weight:800;
    margin-top:6px;
}

.po-support-section {
    margin-top:30px;
}

.po-support-section-title {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    margin-bottom:14px;
}

.po-support-section-title h2 {
    font-size:19px;
    margin:0;
}

.po-ticket-list {
    display:flex;
    flex-direction:column;
    gap:12px;
}

.po-ticket-card {
    display:grid;
    grid-template-columns:minmax(0, 1fr) auto;
    gap:20px;
    padding:20px;
    border:1px solid rgba(128,128,128,.18);
    border-radius:16px;
    text-decoration:none;
    color:inherit;
    transition:.16s ease;
}

.po-ticket-card:hover {
    transform:translateY(-1px);
    border-color:rgba(128,2,96,.45);
}

.po-ticket-number {
    font-size:11px;
    font-weight:800;
    letter-spacing:.5px;
    color:#b04491;
}

.po-ticket-subject {
    font-size:16px;
    font-weight:800;
    margin-top:5px;
}

.po-ticket-meta {
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    margin-top:9px;
    font-size:11px;
    opacity:.62;
}

.po-ticket-right {
    display:flex;
    flex-direction:column;
    align-items:flex-end;
    justify-content:center;
    gap:8px;
}

.po-ticket-status {
    display:inline-flex;
    align-items:center;
    padding:6px 9px;
    border-radius:999px;
    font-size:10px;
    font-weight:800;
    white-space:nowrap;
}

.po-ticket-status.waiting {
    color:#f59e0b;
    background:rgba(245,158,11,.10);
}

.po-ticket-status.reply {
    color:#3b82f6;
    background:rgba(59,130,246,.10);
}

.po-ticket-status.progress {
    color:#a855f7;
    background:rgba(168,85,247,.10);
}

.po-ticket-status.resolved {
    color:#22c55e;
    background:rgba(34,197,94,.10);
}

.po-ticket-empty {
    border:1px dashed rgba(128,128,128,.25);
    border-radius:16px;
    padding:28px;
    text-align:center;
    opacity:.65;
}

.po-support-form-card,
.po-ticket-detail-card,
.po-conversation-card {
    border:1px solid rgba(128,128,128,.18);
    border-radius:18px;
    padding:24px;
    background:rgba(128,128,128,.025);
}

.po-support-form-grid {
    display:grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:18px;
}

.po-support-field {
    display:flex;
    flex-direction:column;
    gap:7px;
}

.po-support-field.full {
    grid-column:1 / -1;
}

.po-support-field label {
    font-size:12px;
    font-weight:700;
}

.po-support-input,
.po-support-select,
.po-support-textarea {
    width:100%;
    box-sizing:border-box;
    border:1px solid rgba(128,128,128,.25);
    border-radius:11px;
    padding:11px 12px;
    font:inherit;
    color:inherit;
    background:transparent;
}

.po-support-textarea {
    resize:vertical;
    min-height:150px;
}

.po-support-input:focus,
.po-support-select:focus,
.po-support-textarea:focus {
    outline:none;
    border-color:#800260;
    box-shadow:0 0 0 3px rgba(128,2,96,.09);
}

.po-support-actions {
    display:flex;
    justify-content:flex-end;
    gap:10px;
    margin-top:20px;
}

.po-support-error {
    padding:13px 15px;
    border-radius:11px;
    margin-bottom:18px;
    background:rgba(239,68,68,.09);
    color:#ef4444;
    font-size:13px;
}

.po-ticket-detail-top {
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:20px;
}

.po-ticket-detail-title {
    margin:6px 0;
    font-size:23px;
}

.po-ticket-detail-meta {
    display:flex;
    flex-wrap:wrap;
    gap:12px;
    margin-top:12px;
    font-size:12px;
    opacity:.62;
}

.po-conversation-card {
    margin-top:20px;
}

.po-messages {
    display:flex;
    flex-direction:column;
    gap:16px;
}

.po-message {
    display:flex;
    flex-direction:column;
    max-width:78%;
}

.po-message.customer {
    margin-left:auto;
    align-items:flex-end;
}

.po-message.agent,
.po-message.system {
    margin-right:auto;
    align-items:flex-start;
}

.po-message-name {
    font-size:10px;
    opacity:.55;
    margin-bottom:5px;
}

.po-message-bubble {
    padding:12px 14px;
    border-radius:15px;
    line-height:1.55;
    font-size:13px;
    white-space:pre-wrap;
    overflow-wrap:anywhere;
}

.po-message.customer .po-message-bubble {
    background:#800260;
    color:#fff;
    border-bottom-right-radius:5px;
}

.po-message.agent .po-message-bubble {
    background:rgba(128,128,128,.12);
    border-bottom-left-radius:5px;
}

.po-message.system .po-message-bubble {
    background:rgba(245,158,11,.09);
}

.po-message-time {
    margin-top:5px;
    font-size:9px;
    opacity:.45;
}

.po-reply-box {
    border-top:1px solid rgba(128,128,128,.14);
    margin-top:22px;
    padding-top:20px;
}

.po-support-pagination {
    display:flex;
    gap:10px;
    margin-top:14px;
}

.po-support-pagination a {
    text-decoration:none;
    color:inherit;
    border:1px solid rgba(128,128,128,.2);
    border-radius:9px;
    padding:7px 11px;
    font-size:11px;
}

@media (max-width:760px) {
    .po-support-header {
        align-items:flex-start;
        flex-direction:column;
    }

    .po-support-new-button {
        width:100%;
        text-align:center;
    }

    .po-support-summary,
    .po-support-form-grid {
        grid-template-columns:1fr;
    }

    .po-support-field.full {
        grid-column:auto;
    }

    .po-ticket-card {
        grid-template-columns:1fr;
    }

    .po-ticket-right {
        align-items:flex-start;
    }

    .po-message {
        max-width:90%;
    }

    .po-ticket-detail-top {
        flex-direction:column;
    }
}
