/* ---------------- 3D WhatsApp - Telefon ---------------- */

.dg2-whatsapp-wrapper,
.dg2-phone-wrapper {
    position: fixed;
    right: 20px;
    z-index: 999999;
    perspective: 800px;
}

.dg2-whatsapp-wrapper {
    bottom: 150px;
}

.dg2-phone-wrapper {
    bottom: 80px;
}

.dg2-whatsapp-button,
.dg2-phone-button-float {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25), 0 0 0 rgba(0, 0, 0, 0.2) inset;
    transform-style: preserve-3d;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: pulse3d 2s infinite;
}

.dg2-whatsapp-button:hover,
.dg2-phone-button-float:hover {
    transform: rotateX(15deg) rotateY(15deg) scale(1.1);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3), 0 0 0 rgba(0, 0, 0, 0.2) inset;
}

/* 3D animasyon */

@keyframes pulse3d {
    0% {
        transform: rotateX(0deg) rotateY(0deg) scale(1);
    }

    25% {
        transform: rotateX(2deg) rotateY(-2deg) scale(1.05);
    }

    50% {
        transform: rotateX(-2deg) rotateY(2deg) scale(1.1);
    }

    75% {
        transform: rotateX(1deg) rotateY(-1deg) scale(1.05);
    }

    100% {
        transform: rotateX(0deg) rotateY(0deg) scale(1);
    }
}

/* Renkler */

.dg2-whatsapp-button {
    background-color: #25D366;
}

.dg2-whatsapp-button:hover {
    background-color: #1ebe57;
}

.dg2-phone-button-float {
    background-color: #FF3B30;
}

.dg2-phone-button-float:hover {
    background-color: #cc2a24;
}

/* Pulse halkalar */

.dg2-whatsapp-wrapper::before,
.dg2-phone-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(1);
    animation: ring 1.5s infinite;
    pointer-events: none;
    z-index: -1;
}

.dg2-whatsapp-wrapper::before {
    background: rgba(37, 211, 102, 0.3);
}

.dg2-phone-wrapper::before {
    background: rgba(255, 59, 48, 0.3);
}

@keyframes ring {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.7;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0.3;
    }

    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.7;
    }
}


.back-to-top-btn {
    position: fixed;
    /* BUNU EKLE */

    right: 22px;
    bottom: 20px;

    display: inline-block;
    width: 44px;
    height: 44px;
    line-height: 44px;
    text-align: center;
    background: var(--td-theme-primary);
    box-shadow: 0px 8px 16px rgba(3, 4, 28, 0.3);
    color: var(--td-common-white);
    border-radius: 50%;
}

.td-header-phone-btn {
    display: inline-flex;
    /* flex yerine inline-flex */
    align-items: center;
    gap: 6px;
    /* boşluğu azalttık */
    background: #00bde0;
    color: #fff;
    padding: 6px 12px;
    /* küçülttük */
    border-radius: 25px;
    font-size: 14px;
    text-decoration: none;
    transition: 0.3s;
    width: auto;
    /* uzamayı engeller */
}

.td-header-phone-btn:hover {
    background: #009bb8;
    color: #fff;
}

.phone-icon {
    font-size: 16px;
}

.phone-text {
    font-size: 16px;
    /* numarayı büyüttük */
    font-weight: 600;
}