.chiase-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10060;
    max-width: 90%;
    padding: 12px 20px;
    background: rgba(33, 37, 41, 0.92);
    color: #fff;
    border-radius: 8px;
    font-size: 14px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* ── Share card ── */
.nhaban-chiase {
    background: #fff;
    border-radius: 0.375rem;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.nhaban-chiase__header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bs-primary, #0d6efd);
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
}

.nhaban-chiase__header i {
    font-size: 1rem;
}

.nhaban-chiase__body {
    padding: 0.75rem;
}

.nhaban-chiase__group {
    margin-bottom: 0.75rem;
}

.nhaban-chiase__group:last-of-type {
    margin-bottom: 0.5rem;
}

.nhaban-chiase__label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgb(49, 130, 166);
    margin-bottom: 0.4rem;
    padding-left: 0.15rem;
}

.nhaban-chiase__grid {
    display: grid;
    gap: 0.5rem;
}

.nhaban-chiase__grid--2 {
    grid-template-columns: 1fr 1fr;
}

/* ── Share buttons ── */
.chiase-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.75rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
    white-space: nowrap;
    line-height: 1.2;
    text-align: left;
}

.chiase-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: #fff;
}

.chiase-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

.chiase-btn__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    flex-shrink: 0;
    font-size: 1rem;
}

.chiase-btn__text {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chiase-btn__arrow {
    font-size: 0.75rem;
    opacity: 0.7;
    flex-shrink: 0;
}

.chiase-btn--full {
    width: 100%;
    margin-top: 0.25rem;
    justify-content: flex-start;
}

/* Brand colors */
.chiase-btn--zalo {
    background: linear-gradient(135deg, #0068ff 0%, #0050cc 100%);
}

.chiase-btn--messenger {
    background: linear-gradient(135deg, #00b2ff 0%, #006aff 100%);
}

.chiase-btn--anh {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
}

.chiase-btn--phaply {
    background: linear-gradient(135deg, #6c757d 0%, #545b62 100%);
}

.chiase-btn--mau {
    background: linear-gradient(135deg, #f0a500 0%, #e08e00 100%);
    color: #fff;
}

/* Admin / table: compact layout */
.nhaban-chiase--compact .nhaban-chiase__header {
    font-size: 0.8rem;
    padding: 0.35rem 0.5rem;
}

.nhaban-chiase--compact .nhaban-chiase__body {
    padding: 0.5rem;
}

.nhaban-chiase--compact .nhaban-chiase__label {
    display: none;
}

.nhaban-chiase--compact .nhaban-chiase__group {
    margin-bottom: 0.35rem;
}

.nhaban-chiase--compact .chiase-btn {
    padding: 0.4rem 0.5rem;
    font-size: 0.75rem;
    gap: 0.35rem;
}

.nhaban-chiase--compact .chiase-btn__icon {
    width: 1.5rem;
    height: 1.5rem;
    font-size: 0.8rem;
}

.nhaban-chiase--compact .chiase-btn__arrow {
    display: none;
}

.nhaban-chiase--compact .chiase-btn--full .chiase-btn__text {
    font-size: 0.75rem;
}

.nhaban-chiase--compact .nhaban-chiase__grid--2 {
    grid-template-columns: 1fr 1fr;
}

/* Modal footer */
.chiase-modal-footer {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
    border-top: 1px solid #dee2e6;
    padding: 0.75rem 1rem;
}

.chiase-modal-footer .chiase-btn {
    min-width: 130px;
    justify-content: center;
}

/* Responsive */
@media (max-width: 400px) {
    .nhaban-chiase__grid--2 {
        grid-template-columns: 1fr;
    }

    .chiase-btn {
        width: 100%;
    }
}

@media (min-width: 768px) {
    .nhaban-chiase__body {
        padding: 1rem;
    }

    .chiase-btn {
        font-size: 0.875rem;
        padding: 0.6rem 0.85rem;
    }
}
