/* Premium Lüks Kuyumcu Teması - Toast Bildirimleri */
#notifications {
    position: fixed;
    right: 20px;
    top: 20px;
    z-index: 99999;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 420px;
    width: 100%;
}

.toast-cst {
    position: relative;
    padding: 20px 24px;
    color: #fff;
    display: flex;
    align-items: flex-start;
    gap: 18px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(160, 121, 54, 0.98) 0%, rgba(201, 160, 95, 0.98) 100%);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    box-shadow:
            0 12px 40px rgba(160, 121, 54, 0.25),
            0 4px 12px rgba(0, 0, 0, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.25),
            0 0 0 0 rgba(160, 121, 54, 0.4);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    overflow: hidden;
    pointer-events: all;
    will-change: transform, opacity, filter;
    transform-origin: right center;
    animation: toastEnter 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    opacity: 0;
}

/* Giriş animasyonu - Bounce ve Spring efekti */
@keyframes toastEnter {
    0% {
        transform: translateX(150%) scale(0.7) rotate(-5deg);
        opacity: 0;
        filter: blur(10px);
    }
    50% {
        transform: translateX(-8px) scale(1.05) rotate(2deg);
        opacity: 0.8;
        filter: blur(2px);
    }
    70% {
        transform: translateX(4px) scale(0.98) rotate(-1deg);
        opacity: 0.95;
    }
    100% {
        transform: translateX(0) scale(1) rotate(0deg);
        opacity: 1;
        filter: blur(0);
    }
}

.toast-cst:hover {
    transform: translateX(-8px) scale(1.02);
    box-shadow:
            0 16px 48px rgba(160, 121, 54, 0.3),
            0 6px 16px rgba(0, 0, 0, 0.12),
            inset 0 1px 0 rgba(255, 255, 255, 0.3),
            0 0 25px rgba(160, 121, 54, 0.6);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Altın parıltı efekti - Daha belirgin */
.toast-cst::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
            45deg,
            transparent 25%,
            rgba(255, 255, 255, 0.15) 50%,
            transparent 75%
    );
    transform: rotate(45deg);
    animation: shimmer 3.5s infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

/* Responsive genişlikler */
@media (max-width: 1140px) {
    #notifications {
        width: 380px;
        right: 15px;
        top: 15px;
    }
}

@media (max-width: 768px) {
    #notifications {
        width: calc(100% - 30px);
        max-width: 360px;
        right: 15px;
        top: 15px;
    }

    .toast-cst {
        padding: 18px 22px;
        gap: 16px;
    }
}

@media (max-width: 425px) {
    #notifications {
        width: calc(100% - 20px);
        max-width: 100%;
        right: 10px;
        top: 10px;
    }

    .toast-cst {
        padding: 16px 20px;
        gap: 14px;
        border-radius: 16px;
    }
}

/* İçerik alanı - Fade in animasyonu */
.toast-cst .content {
    flex: 1;
    z-index: 1;
    min-width: 0;
    animation: contentFadeIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}

@keyframes contentFadeIn {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* İkon stilleri - Animasyonlu ve etkileyici */
.toast-cst i:first-child {
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 26px;
    width: 52px;
    height: 52px;
    min-width: 52px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    flex-shrink: 0;
    box-shadow:
            0 6px 16px rgba(0, 0, 0, 0.12),
            inset 0 1px 0 rgba(255, 255, 255, 0.25),
            0 0 20px rgba(255, 255, 255, 0.2);
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    backdrop-filter: blur(12px);
    animation: iconEnter 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both,
    iconPulse 2.5s ease-in-out 1.2s infinite;
    position: relative;
}

@keyframes iconEnter {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }
    60% {
        transform: scale(1.2) rotate(10deg);
    }
    80% {
        transform: scale(0.95) rotate(-5deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow:
                0 6px 16px rgba(0, 0, 0, 0.12),
                inset 0 1px 0 rgba(255, 255, 255, 0.25),
                0 0 20px rgba(255, 255, 255, 0.2);
    }
    50% {
        transform: scale(1.08);
        box-shadow:
                0 8px 20px rgba(0, 0, 0, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.3),
                0 0 30px rgba(255, 255, 255, 0.35);
    }
}

.toast-cst:hover i:first-child {
    background: rgba(255, 255, 255, 0.28);
    transform: scale(1.12) rotate(5deg);
    box-shadow:
            0 10px 24px rgba(0, 0, 0, 0.18),
            inset 0 1px 0 rgba(255, 255, 255, 0.35),
            0 0 35px rgba(255, 255, 255, 0.4);
    animation: none;
}

/* Başlık - Slide in animasyonu */
.toast-cst .title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    letter-spacing: 0.3px;
    line-height: 1.3;
    animation: titleSlide 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s both;
}

@keyframes titleSlide {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Mesaj metni - Fade in */
.toast-cst span {
    color: rgba(255, 255, 255, 0.95);
    opacity: 0;
    font-size: 14px;
    line-height: 1.6;
    display: block;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    word-wrap: break-word;
    animation: textFade 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s both;
}

@keyframes textFade {
    0% {
        opacity: 0;
        transform: translateY(8px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Kapatma butonu - Modern ve animasyonlu */
.toast-cst i:nth-child(3) {
    color: rgba(255, 255, 255, 0.9);
    opacity: 0.6;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-size: 19px;
    width: 34px;
    height: 34px;
    min-width: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    z-index: 1;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.1);
    animation: closeBtnEnter 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.5s both;
}

@keyframes closeBtnEnter {
    0% {
        opacity: 0;
        transform: scale(0) rotate(-90deg);
    }
    100% {
        opacity: 0.6;
        transform: scale(1) rotate(0deg);
    }
}

.toast-cst i:nth-child(3):hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg) scale(1.15);
    color: #fff;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.toast-cst i:nth-child(3):active {
    transform: rotate(90deg) scale(0.9);
}

/* Çıkış animasyonu - Smooth ve etkileyici */
.toast-cst.removing {
    animation: toastExit 0.5s cubic-bezier(0.55, 0.055, 0.675, 0.19) forwards;
    pointer-events: none;
}

@keyframes toastExit {
    0% {
        transform: translateX(0) scale(1) rotate(0deg);
        opacity: 1;
        filter: blur(0);
    }
    50% {
        transform: translateX(30px) scale(0.95) rotate(5deg);
        opacity: 0.5;
        filter: blur(4px);
    }
    100% {
        transform: translateX(150%) scale(0.7) rotate(-10deg);
        opacity: 0;
        filter: blur(10px);
    }
}

/* Zaman çubuğu - Smooth progress bar */
.toast-cst::before {
    position: absolute;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0.85) 50%,
    rgba(255, 255, 255, 0.7) 100%);
    width: 100%;
    height: 4px;
    content: '';
    box-shadow:
            0 0 12px rgba(255, 255, 255, 0.6),
            0 -2px 8px rgba(255, 255, 255, 0.4);
    animation: timeOut 5s linear 1 forwards;
    z-index: 2;
    border-radius: 0 0 18px 18px;
    transform-origin: left;
}

@keyframes timeOut {
    from {
        transform: scaleX(1);
        opacity: 1;
    }
    to {
        transform: scaleX(0);
        opacity: 0.3;
    }
}

/* Hata bildirimi - Koyu altın ton (#a07936 varyasyonu) */
.toast-cst.error {
    background: linear-gradient(135deg, rgba(138, 107, 50, 0.98) 0%, rgba(160, 121, 54, 0.98) 100%);
    border-color: rgba(255, 220, 180, 0.4);
    box-shadow:
            0 12px 40px rgba(138, 107, 50, 0.3),
            0 4px 12px rgba(0, 0, 0, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.25),
            0 0 0 0 rgba(138, 107, 50, 0.5);
}

.toast-cst.error:hover {
    box-shadow:
            0 16px 48px rgba(138, 107, 50, 0.35),
            0 6px 16px rgba(0, 0, 0, 0.12),
            inset 0 1px 0 rgba(255, 255, 255, 0.3),
            0 0 25px rgba(160, 121, 54, 0.6);
}

.toast-cst.error::before {
    background: linear-gradient(90deg,
    rgba(255, 230, 200, 1) 0%,
    rgba(255, 210, 170, 0.9) 50%,
    rgba(255, 190, 150, 0.8) 100%);
    box-shadow: 0 0 15px rgba(255, 210, 170, 0.7);
}

.toast-cst.error i:first-child {
    background: rgba(255, 255, 255, 0.22);
    animation: iconEnter 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both,
    iconShake 3s ease-in-out 1.2s infinite;
}

@keyframes iconShake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-3deg); }
    75% { transform: rotate(3deg); }
}

/* Uyarı bildirimi - Açık altın ton (#a07936 varyasyonu) */
.toast-cst.warning {
    background: linear-gradient(135deg, rgba(201, 160, 95, 0.98) 0%, rgba(180, 140, 75, 0.98) 100%);
    border-color: rgba(255, 240, 220, 0.4);
    box-shadow:
            0 12px 40px rgba(201, 160, 95, 0.3),
            0 4px 12px rgba(0, 0, 0, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.25),
            0 0 0 0 rgba(201, 160, 95, 0.5);
}

.toast-cst.warning:hover {
    box-shadow:
            0 16px 48px rgba(201, 160, 95, 0.35),
            0 6px 16px rgba(0, 0, 0, 0.12),
            inset 0 1px 0 rgba(255, 255, 255, 0.3),
            0 0 25px rgba(160, 121, 54, 0.6);
}

.toast-cst.warning::before {
    background: linear-gradient(90deg,
    rgba(255, 245, 220, 1) 0%,
    rgba(255, 235, 200, 0.9) 50%,
    rgba(255, 225, 180, 0.8) 100%);
    box-shadow: 0 0 15px rgba(255, 235, 200, 0.7);
}

.toast-cst.warning i:first-child {
    background: rgba(255, 255, 255, 0.22);
}

/* Bilgi bildirimi - Orta altın ton (#a07936 varyasyonu) */
.toast-cst.info {
    background: linear-gradient(135deg, rgba(160, 121, 54, 0.98) 0%, rgba(138, 107, 50, 0.98) 100%);
    border-color: rgba(255, 230, 200, 0.4);
    box-shadow:
            0 12px 40px rgba(160, 121, 54, 0.3),
            0 4px 12px rgba(0, 0, 0, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.25),
            0 0 0 0 rgba(160, 121, 54, 0.5);
}

.toast-cst.info:hover {
    box-shadow:
            0 16px 48px rgba(160, 121, 54, 0.35),
            0 6px 16px rgba(0, 0, 0, 0.12),
            inset 0 1px 0 rgba(255, 255, 255, 0.3),
            0 0 25px rgba(160, 121, 54, 0.6);
}

.toast-cst.info::before {
    background: linear-gradient(90deg,
    rgba(255, 240, 220, 1) 0%,
    rgba(255, 230, 200, 0.9) 50%,
    rgba(255, 220, 180, 0.8) 100%);
    box-shadow: 0 0 15px rgba(255, 230, 200, 0.7);
}

.toast-cst.info i:first-child {
    background: rgba(255, 255, 255, 0.22);
}

/* Başarı bildirimi - Parlak altın ton (#a07936 varyasyonu) */
.toast-cst.success {
    background: linear-gradient(135deg, rgba(180, 140, 75, 0.98) 0%, rgba(160, 121, 54, 0.98) 100%);
    border-color: rgba(255, 245, 220, 0.4);
    box-shadow:
            0 12px 40px rgba(180, 140, 75, 0.3),
            0 4px 12px rgba(0, 0, 0, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.25),
            0 0 0 0 rgba(180, 140, 75, 0.5);
}

.toast-cst.success:hover {
    box-shadow:
            0 16px 48px rgba(180, 140, 75, 0.35),
            0 6px 16px rgba(0, 0, 0, 0.12),
            inset 0 1px 0 rgba(255, 255, 255, 0.3),
            0 0 25px rgba(160, 121, 54, 0.6);
}

.toast-cst.success::before {
    background: linear-gradient(90deg,
    rgba(255, 250, 230, 1) 0%,
    rgba(255, 245, 220, 0.9) 50%,
    rgba(255, 240, 210, 0.8) 100%);
    box-shadow: 0 0 15px rgba(255, 245, 220, 0.7);
}

.toast-cst.success i:first-child {
    background: rgba(255, 255, 255, 0.22);
    animation: iconEnter 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both,
    iconBounce 2.5s ease-in-out 1.2s infinite;
}

@keyframes iconBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

/* Mobil için ek optimizasyonlar */
@media (max-width: 425px) {
    .toast-cst .title {
        font-size: 15px;
        margin-bottom: 6px;
    }

    .toast-cst span {
        font-size: 13px;
    }

    .toast-cst i:first-child {
        font-size: 24px;
        width: 48px;
        height: 48px;
        min-width: 48px;
    }

    .toast-cst i:nth-child(3) {
        width: 32px;
        height: 32px;
        min-width: 32px;
        font-size: 17px;
    }

    @keyframes toastEnter {
        0% {
            transform: translateX(120%) scale(0.8);
            opacity: 0;
        }
        50% {
            transform: translateX(-5px) scale(1.02);
            opacity: 0.9;
        }
        100% {
            transform: translateX(0) scale(1);
            opacity: 1;
        }
    }
}

/* Ekstra: Toast stack animasyonu için */
.toast-cst:not(:last-child) {
    margin-bottom: 0;
}
