.tb-toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 420px;
    width: calc(100% - 32px);
    pointer-events: none;
}

@media (max-width: 768px) {
    .tb-toast-container {
        top: 80px;
        left: 16px;
        right: 16px;
        width: auto;
        max-width: 100%;
        align-items: stretch;
    }
}

.tb-toast {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04), 0 0 0 1px rgba(0, 0, 0, 0.06);
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #111827;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px) scale(0.96);
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

.tb-toast.tb-toast-show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.tb-toast.tb-toast-hide {
    opacity: 0;
    transform: translateX(25px) scale(0.96);
}

@media (max-width: 768px) {
    .tb-toast.tb-toast-hide {
        transform: translateY(-15px) scale(0.96);
    }
}

.tb-toast-icon-wrap {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tb-toast-icon-wrap svg {
    width: 18px;
    height: 18px;
    display: block;
}

.tb-toast-success .tb-toast-icon-wrap {
    background: #ECFDF5;
    color: #059669;
}
.tb-toast-success {
    border-left: 3px solid #059669;
}

.tb-toast-error .tb-toast-icon-wrap {
    background: #FEF2F2;
    color: #DC2626;
}
.tb-toast-error {
    border-left: 3px solid #DC2626;
}

.tb-toast-warning .tb-toast-icon-wrap {
    background: #FFFBEB;
    color: #D97706;
}
.tb-toast-warning {
    border-left: 3px solid #D97706;
}

.tb-toast-info .tb-toast-icon-wrap {
    background: #F3F4F6;
    color: #1F2937;
}
.tb-toast-info {
    border-left: 3px solid #1F2937;
}

.tb-toast-content {
    flex: 1;
    min-width: 0;
    padding-top: 1px;
}

.tb-toast-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #111827;
    line-height: 1.35;
    margin-bottom: 2px;
}

.tb-toast-msg {
    font-size: 13px;
    color: #4B5563;
    line-height: 1.45;
    word-break: break-word;
}

.tb-toast-close {
    background: transparent;
    border: none;
    cursor: pointer;
    color: #9CA3AF;
    padding: 4px;
    margin: -4px -4px 0 0;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s, background-color 0.15s;
    line-height: 1;
}

.tb-toast-close:hover {
    color: #111827;
    background: #F3F4F6;
}

.tb-toast-close svg {
    width: 16px;
    height: 16px;
}

.tb-toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2.5px;
    background: rgba(0, 0, 0, 0.08);
    width: 100%;
    transform-origin: left;
}

.tb-toast-success .tb-toast-progress { background: #059669; opacity: 0.4; }
.tb-toast-error .tb-toast-progress { background: #DC2626; opacity: 0.4; }
.tb-toast-warning .tb-toast-progress { background: #D97706; opacity: 0.4; }
.tb-toast-info .tb-toast-progress { background: #1F2937; opacity: 0.3; }

.tb-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1000000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.22s;
    box-sizing: border-box;
}

.tb-modal-backdrop.tb-modal-show {
    opacity: 1;
    visibility: visible;
}

.tb-modal {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    width: 100%;
    max-width: 420px;
    padding: 24px;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    transform: scale(0.95) translateY(6px);
    opacity: 0;
    transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.24s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

.tb-modal-backdrop.tb-modal-show .tb-modal {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.tb-modal-icon-badge {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.tb-modal-icon-badge svg {
    width: 24px;
    height: 24px;
}

.tb-modal-danger .tb-modal-icon-badge {
    background: #FEE2E2;
    color: #DC2626;
}

.tb-modal-warning .tb-modal-icon-badge {
    background: #FEF3C7;
    color: #D97706;
}

.tb-modal-info .tb-modal-icon-badge,
.tb-modal-primary .tb-modal-icon-badge {
    background: #F3F4F6;
    color: #111827;
}

.tb-modal-title {
    font-size: 17px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 8px 0;
    line-height: 1.35;
}

.tb-modal-desc {
    font-size: 13.5px;
    color: #4B5563;
    line-height: 1.5;
    margin: 0;
}

.tb-modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 24px;
    justify-content: flex-end;
}

@media (max-width: 480px) {
    .tb-modal-actions {
        flex-direction: column-reverse;
    }
    .tb-modal-actions button {
        width: 100%;
    }
}

.tb-btn-cancel {
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    background: #F3F4F6;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s;
    font-family: inherit;
    text-align: center;
}

.tb-btn-cancel:hover {
    background: #E5E7EB;
    color: #111827;
}

.tb-btn-confirm {
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    background: #111827;
    border: 1px solid #111827;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s, opacity 0.15s;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
}

.tb-btn-confirm:hover {
    background: #000000;
    border-color: #000000;
}

.tb-modal-danger .tb-btn-confirm {
    background: #DC2626;
    border-color: #DC2626;
}

.tb-modal-danger .tb-btn-confirm:hover {
    background: #B91C1C;
    border-color: #B91C1C;
}

.tb-modal-warning .tb-btn-confirm {
    background: #D97706;
    border-color: #D97706;
}

.tb-modal-warning .tb-btn-confirm:hover {
    background: #B45309;
    border-color: #B45309;
}

.tb-btn-confirm.is-loading {
    opacity: 0.8;
    cursor: wait !important;
    pointer-events: none;
}

.tb-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: tb-spin 0.6s linear infinite;
    display: inline-block;
}

@keyframes tb-spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .tb-toast,
    .tb-modal,
    .tb-modal-backdrop {
        transition: none !important;
        transform: none !important;
    }
}
