.sg-toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 99999999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    pointer-events: none;
    width: max-content;
    max-width: calc(100vw - 32px);
}

.sg-toast-card {
    pointer-events: auto;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px 14px 16px;
    border-radius: 16px;
    min-width: 290px;
    max-width: 420px;
    background: #ffffff;
    box-shadow: 0 12px 36px -4px rgba(0, 0, 0, 0.12), 0 4px 16px -2px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.06);
    color: #1e293b;
    font-family: -apple-system, BlinkMacSystemFont, 'Plus Jakarta Sans', 'Segoe UI', Roboto, sans-serif;
    animation: sgToastSlideInRight 0.32s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    cursor: default;
    user-select: none;
    box-sizing: border-box;
}

@keyframes sgToastSlideInRight {
    from {
        opacity: 0;
        transform: translateX(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.sg-toast-card.sg-toast-hiding {
    animation: sgToastSlideOutRight 0.25s ease-in forwards !important;
}

@keyframes sgToastSlideOutRight {
    from {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateX(40px) scale(0.95);
    }
}

/* VARIANT ACCENTS - CLEAN MODERN CARD (MATCHING USER SCREENSHOT) */
.sg-toast-success {
    border: 1px solid rgba(16, 185, 129, 0.2);
    background: #ffffff;
}
.sg-toast-success .sg-toast-icon-wrap {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
}
.sg-toast-success .sg-toast-check-badge {
    background: #10b981;
    color: #ffffff;
    box-shadow: 0 3px 8px rgba(16, 185, 129, 0.4);
}
.sg-toast-success .sg-toast-title {
    color: #10b981;
}
.sg-toast-success .sg-toast-progress-bar {
    background: linear-gradient(90deg, #10b981, #34d399);
}

.sg-toast-promo,
.sg-toast-copy {
    border: 1px solid rgba(245, 158, 11, 0.25);
    background: #ffffff;
}
.sg-toast-promo .sg-toast-icon-wrap,
.sg-toast-copy .sg-toast-icon-wrap {
    background: rgba(245, 158, 11, 0.14);
    color: #f59e0b;
}
.sg-toast-promo .sg-toast-check-badge,
.sg-toast-copy .sg-toast-check-badge {
    background: #f59e0b;
    color: #ffffff;
    box-shadow: 0 3px 8px rgba(245, 158, 11, 0.4);
}
.sg-toast-promo .sg-toast-title,
.sg-toast-copy .sg-toast-title {
    color: #d97706;
}
.sg-toast-promo .sg-toast-progress-bar,
.sg-toast-copy .sg-toast-progress-bar {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.sg-toast-error {
    border: 1px solid rgba(239, 68, 68, 0.25);
    background: #ffffff;
}
.sg-toast-error .sg-toast-icon-wrap {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
}
.sg-toast-error .sg-toast-check-badge {
    background: #ef4444;
    color: #ffffff;
    box-shadow: 0 3px 8px rgba(239, 68, 68, 0.4);
}
.sg-toast-error .sg-toast-title {
    color: #ef4444;
}
.sg-toast-error .sg-toast-progress-bar {
    background: linear-gradient(90deg, #ef4444, #f87171);
}

.sg-toast-warning {
    border: 1px solid rgba(245, 158, 11, 0.25);
    background: #ffffff;
}
.sg-toast-warning .sg-toast-icon-wrap {
    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
}
.sg-toast-warning .sg-toast-check-badge {
    background: #f59e0b;
    color: #ffffff;
    box-shadow: 0 3px 8px rgba(245, 158, 11, 0.4);
}
.sg-toast-warning .sg-toast-title {
    color: #f59e0b;
}
.sg-toast-warning .sg-toast-progress-bar {
    background: linear-gradient(90deg, #f59e0b, #fde68a);
}

.sg-toast-info {
    border: 1px solid rgba(14, 165, 233, 0.25);
    background: #ffffff;
}
.sg-toast-info .sg-toast-icon-wrap {
    background: rgba(14, 165, 233, 0.12);
    color: #0ea5e9;
}
.sg-toast-info .sg-toast-check-badge {
    background: #0ea5e9;
    color: #ffffff;
    box-shadow: 0 3px 8px rgba(14, 165, 233, 0.4);
}
.sg-toast-info .sg-toast-title {
    color: #0ea5e9;
}
.sg-toast-info .sg-toast-progress-bar {
    background: linear-gradient(90deg, #0ea5e9, #38bdf8);
}

/* ELEMENTS */
.sg-toast-icon-wrap {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sg-toast-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.sg-toast-title {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.2;
}

.sg-toast-body {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    color: #475569;
    word-break: break-word;
}

.sg-toast-body strong,
.sg-toast-body .sg-toast-code {
    color: #0f172a;
    font-family: 'Roboto Mono', monospace;
    font-weight: 700;
    background: #f1f5f9;
    padding: 1px 5px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
}

.sg-toast-check-badge {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: 2px;
}

.sg-toast-close {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #f1f5f9;
    border: none;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 15px;
    line-height: 1;
    padding: 0;
    flex-shrink: 0;
    transition: all 0.15s ease;
    margin-left: 4px;
}

.sg-toast-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.sg-toast-progress-track {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(0, 0, 0, 0.04);
}

.sg-toast-progress-bar {
    height: 100%;
    width: 100%;
    transform-origin: left;
    transition: transform linear;
}

/* MOBILE ADAPTATION */
@media (max-width: 640px) {
    .sg-toast-container {
        top: 14px;
        right: 14px;
        left: 14px;
        width: auto;
        max-width: 100%;
        align-items: stretch;
    }
    .sg-toast-card {
        width: 100%;
        max-width: 100%;
        padding: 11px 14px;
        border-radius: 14px;
    }
}
