/* ========== Hộp thư khách ========== */
.inbox-page {
    padding: 100px 0 60px;
    min-height: 70vh;
    background:
        radial-gradient(ellipse 60% 40% at 100% 0%, rgba(59, 130, 246, 0.08), transparent 55%),
        var(--bg);
}

.inbox-wrap {
    max-width: 720px;
    margin: 0 auto;
}

.inbox-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 24px;
}

.inbox-title {
    margin: 0 0 4px;
    font-size: clamp(1.4rem, 2.5vw, 1.75rem);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.inbox-sub {
    margin: 0;
    color: var(--text-light);
    font-size: 0.92rem;
}

.inbox-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.inbox-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.inbox-card.unread {
    border-color: rgba(59, 130, 246, 0.35);
    background:
        linear-gradient(135deg, rgba(59, 130, 246, 0.08), transparent 60%),
        var(--card-bg);
}

.inbox-card:hover {
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.inbox-card-main {
    flex: 1;
    min-width: 0;
}

.inbox-card-top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.inbox-card-top strong {
    font-size: 0.95rem;
}

.inbox-dot {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.15);
    color: var(--primary);
}

.inbox-preview {
    margin: 0 0 4px;
    font-size: 0.86rem;
    color: var(--text-light);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.inbox-card-main small {
    font-size: 0.75rem;
    color: var(--text-light);
}

.inbox-card-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.inbox-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
    background: var(--card-bg);
    border: 1px dashed var(--border);
    border-radius: 16px;
}

.inbox-empty .btn {
    margin-top: 14px;
    display: inline-flex;
}

.inbox-detail-time {
    margin: 0 0 12px;
    font-size: 0.88rem;
    color: var(--text-light);
}

.inbox-detail-body {
    font-size: 0.95rem;
    line-height: 1.65;
    white-space: pre-wrap;
}

.inbox-badge {
    background: #f59e0b !important;
}

/* Mini list trên trang tài khoản */
.account-inbox {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 20px 22px 16px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 10px 28px rgba(15, 23, 42, 0.05);
}

.account-inbox-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.account-inbox-head h2 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
}

.account-inbox-mini .inbox-card {
    padding: 12px;
}

@media (max-width: 600px) {
    .inbox-card {
        flex-direction: column;
        align-items: stretch;
    }
    .inbox-card-actions {
        justify-content: flex-end;
    }
}
