.custom-toast-container {
    position: fixed;
    top: 60px;
    right: 20px;
    width: 350px;            
    height: auto;
    z-index: 99999;

    
    @media (max-width:320px) {
        width: 200px;
    }
}

.custom-toast {
    position: absolute;  
    top: 0;
    right: 0;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 44px 14px 16px;
    border-radius: 12px;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.25);
    opacity: 0;
    transform: translateY(-120%) scale(0.95);
    transition: all 0.6s cubic-bezier(.21,1.02,.73,1);
    pointer-events: auto;
    backdrop-filter: blur(14px);
    pointer-events: auto;
}

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

.custom-toast.hide {
    opacity: 0;
    transform: translateY(-120%) scale(0.9);
}

.custom-toast {
    --stack-offset: 0px;
    transform: translateY(calc(-120% + var(--stack-offset))) scale(0.95);
}

.custom-toast.show {
    transform: translateY(var(--stack-offset)) scale(1);
}

.custom-toast.hide {
    transform: translateY(calc(-120% + var(--stack-offset))) scale(0.9);
}

.custom-toast[data-stack="1"] { --stack-offset: 0px;  z-index: 3; }
.custom-toast[data-stack="2"] { --stack-offset: 12px; z-index: 2; }
.custom-toast[data-stack="3"] { --stack-offset: 24px; z-index: 1; }

/* Types */
.custom-toast.success { background: linear-gradient(135deg, #d1fae5, #a7f3d0);  }
.custom-toast.error   { background: linear-gradient(135deg, #fee2e2, #fecaca); }
.custom-toast.warning { background: linear-gradient(135deg, #fef3c7, #fde68a);  }
.custom-toast.info    { background: linear-gradient(135deg, #dbeafe, #bfdbfe);  }

/* Icon */
.custom-toast-icon { width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; }
.custom-toast-icon svg { width: 24px; height: 24px; }

/* Message */
.custom-toast-message {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    color: #1f2937;
}

/* Timer Ring */
.toast-timer { position: absolute; right: -10px; top: -10px; }
.toast-timer svg { width: 34px; height: 34px; transform: rotate(-90deg); }
.toast-timer circle {
    fill: none;
    stroke-width: 3;
    stroke: currentColor;
    stroke-dasharray: 88;
    stroke-dashoffset: 0;
    animation: toast-ring linear forwards;
}

@keyframes toast-ring {
    to { stroke-dashoffset: 88; }
}

/* Mobile */
@media (max-width: 640px) {
    .custom-toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
        width: auto;
    }
    .custom-toast {
        width: 90%;
    }
}
.custom-toast {
    position: absolute; /* already set by you */
    padding: 14px 44px 14px 16px; /* extra right padding for close button */
}

.custom-toast-close {
    position: absolute;
    top: 6px;
    right: 8px;
    width: 24px;
    height: 24px;
    line-height: 22px;
    text-align: center;
    font-size: 18px;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.2s ease;
    background: rgba(0,0,0,0.08);
}

.custom-toast-close:hover {
    opacity: 1;
    background: rgba(0,0,0,0.15);
    cursor: pointer;
}

/* Text + Icon Colors per Type */
.custom-toast.success {
    color: #065f46; /* emerald-800 */
}

.custom-toast.error {
    color: #7f1d1d; /* red-900 */
}

.custom-toast.warning {
    color: #92400e; /* amber-900 */
}

.custom-toast.info {
    color: #1e40af; /* blue-900 */
}

/* Make icon follow text color */
.custom-toast-icon svg {
    fill: currentColor;
}

/* Message inherits color */
.custom-toast-message {
    color: currentColor;
}
