/* Yüzen asistan ve işlemler menüsü */
.dugun-floating-menu {
    --brand: #7049e6;
    --brand-dark: #5b3bc4;
    --dugun-fab-size: 3.5rem;
    --dugun-fab-stack-gap: 1rem;
    position: fixed;
    inset-inline-end: 1.1rem;
    bottom: 7.5rem; /* Mobil alt barın üzerinde durması için yükseltildi */
    display: flex;
    z-index: 9999;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 0;
    /* Sadece FAB ve açık menü tıklanır; boş alan kartlara gider */
    pointer-events: none;
}

@media (min-width: 992px) {
    .dugun-floating-menu {
        bottom: 2.5rem;
    }
}

.dugun-ai-chat-fab {
    width: var(--dugun-fab-size);
    height: var(--dugun-fab-size);
    border-radius: 50%;
    border: none;
    background: linear-gradient(145deg, var(--brand), var(--brand-dark));
    color: #fff;
    box-shadow: 0 0.35rem 1.25rem rgba(112, 73, 230, 0.45);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 10;
    flex: 0 0 auto;
    pointer-events: auto;
    touch-action: manipulation;
}

.dugun-ai-chat-fab:hover {
    transform: scale(1.05);
}

.dugun-ai-chat-fab .icon-chat {
    width: 1.65rem;
    height: 1.65rem;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.dugun-ai-chat-fab .icon-close {
    position: absolute;
    font-size: 1.5rem;
    opacity: 0;
    transform: rotate(-90deg);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Open State FAB */
.dugun-floating-menu.is-open .dugun-ai-chat-fab {
    background: #fff;
    color: var(--brand);
    box-shadow: 0 0.35rem 1.25rem rgba(0, 0, 0, 0.15);
}

.dugun-floating-menu.is-open .dugun-ai-chat-fab .icon-chat {
    opacity: 0;
    transform: rotate(90deg);
}

.dugun-floating-menu.is-open .dugun-ai-chat-fab .icon-close {
    opacity: 1;
    transform: rotate(0);
}

/* Floating Stack Items — flex akışından çıkar: kapalıyken devasa görünmez hit alanı oluşmaz */
.floating-menu-stack {
    position: absolute;
    inset-inline-end: 0;
    bottom: calc(var(--dugun-fab-size) + var(--dugun-fab-stack-gap));
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1.2rem;
    pointer-events: none;
    opacity: 0;
    transform: translateY(1.5rem);
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0.3s;
    visibility: hidden;
}

.dugun-floating-menu.is-open .floating-menu-stack {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    visibility: visible;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0s;
}

.floating-menu-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Compare Button Style */
.menu-btn {
    width: 3.2rem;
    height: 3.2rem;
    border-radius: 50%;
    background: #fff;
    color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    font-size: 1.25rem;
    transition: transform 0.2s ease;
    position: relative;
    touch-action: manipulation;
}

.menu-btn:hover {
    transform: scale(1.1);
    color: var(--brand-dark);
}

.btn-compare {
    background: var(--brand);
    color: #fff;
}

.btn-scroll-top {
    background: #475569;
    color: #fff;
}

.compare-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ef4444;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 1.2rem;
    height: 1.2rem;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

/* Mascot Style Adjustments */
.dugun-ai-chat-mascot {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.dugun-ai-chat-bubble {
    background: #fff;
    padding: 0.6rem 0.8rem;
    border-radius: 0.8rem 0.8rem 0.1rem 0.8rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #333;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    white-space: nowrap;
    border: 1px solid rgba(112, 73, 230, 0.1);
}

.dugun-ai-chat-couple {
    position: relative;
    width: 4.35rem;
    height: 3.45rem;
    filter: drop-shadow(0 0.45rem 0.85rem rgba(112, 73, 230, 0.3));
}

.dugun-ai-chat-person {
    position: absolute;
    bottom: 0;
    width: 2.35rem;
    height: 3.05rem;
    border-radius: 1.2rem 1.2rem 0.8rem 0.8rem;
    animation: dugun-ai-couple-sway 2.8s ease-in-out infinite;
}

.dugun-ai-chat-bride {
    inset-inline-start: 0;
    background: linear-gradient(160deg, #fff, #f5f3ff);
    border: 1px solid rgba(124, 58, 237, 0.18);
}

.dugun-ai-chat-groom {
    inset-inline-end: 0;
    background: linear-gradient(160deg, #312e81, #5b3bc4);
    animation-delay: 0.18s;
}

.dugun-ai-chat-face {
    position: absolute;
    inset-inline-start: 50%;
    top: 0.48rem;
    width: 1.45rem;
    height: 1.35rem;
    border-radius: 999px;
    background: #ffedd5;
    transform: translateX(-50%);
}

.dugun-ai-chat-eye {
    position: absolute;
    top: 0.46rem;
    width: 0.2rem;
    height: 0.28rem;
    border-radius: 999px;
    background: #312e81;
    animation: dugun-ai-eye-blink 4.2s infinite;
}

.dugun-ai-chat-eye:first-child {
    inset-inline-start: 0.42rem;
}

.dugun-ai-chat-eye:nth-child(2) {
    inset-inline-end: 0.42rem;
}

.dugun-ai-chat-smile {
    position: absolute;
    inset-inline-start: 50%;
    bottom: 0.32rem;
    width: 0.55rem;
    height: 0.28rem;
    border-bottom: 2px solid #7c2d12;
    border-radius: 0 0 999px 999px;
    transform: translateX(-50%);
}

.dugun-ai-chat-veil {
    position: absolute;
    inset-inline-start: -0.18rem;
    top: 0.15rem;
    width: 2.65rem;
    height: 2.85rem;
    border-radius: 1.5rem 1.5rem 0.9rem 0.9rem;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.95);
}

.dugun-ai-chat-veil::before {
    content: "";
    position: absolute;
    inset-inline-start: 0.72rem;
    top: -0.24rem;
    width: 0.92rem;
    height: 0.62rem;
    border-radius: 999px 999px 0.35rem 0.35rem;
    background: #facc15;
    box-shadow: 0.45rem 0.08rem 0 -0.16rem #f472b6;
}

.dugun-ai-chat-bowtie {
    position: absolute;
    inset-inline-start: 50%;
    top: 1.78rem;
    width: 1.05rem;
    height: 0.48rem;
    transform: translateX(-50%);
}

.dugun-ai-chat-bowtie::before,
.dugun-ai-chat-bowtie::after {
    content: "";
    position: absolute;
    top: 0;
    width: 0.48rem;
    height: 0.48rem;
    border-radius: 0.12rem 999px 999px 0.12rem;
    background: #facc15;
}

.dugun-ai-chat-bowtie::before {
    inset-inline-start: 0;
    transform: rotate(28deg);
}

.dugun-ai-chat-bowtie::after {
    inset-inline-end: 0;
    transform: rotate(-28deg) scaleX(-1);
}

@keyframes dugun-ai-eye-blink {
    0%, 45%, 49%, 100% { transform: scaleY(1); }
    47% { transform: scaleY(0.1); }
}

@keyframes dugun-ai-couple-sway {
    0%, 100% { transform: translateY(0) rotate(-1deg); }
    50% { transform: translateY(-0.16rem) rotate(1.5deg); }
}
