/* ===== Google Sign-In Overlay (backdrop) ===== */
.google-signin-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999999999 !important;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.5);
    animation: gsi-fade-in 0.3s ease-out;
}

@keyframes gsi-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ===== Modal card ===== */
.google-signin-modal {
    position: relative;
    width: 90%;
    max-width: 400px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    padding: 32px 28px;
    text-align: center;
    animation: gsi-scale-in 0.3s ease-out;
}

@keyframes gsi-scale-in {
    from { opacity: 0; transform: scale(0.9); }
    to   { opacity: 1; transform: scale(1); }
}

/* ===== Close button ===== */
.google-signin-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: none;
    border: none;
    font-size: 22px;
    line-height: 1;
    color: #5f6368;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 50%;
    transition: background 0.2s, color 0.2s;
}

[dir="rtl"] .google-signin-close {
    right: auto;
    left: 12px;
}

.google-signin-close:hover {
    background: #f1f3f4;
    color: #202124;
}

/* ===== Content sections ===== */
.google-signin-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.google-signin-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #202124;
}

.google-signin-subtitle {
    margin: 0;
    font-size: 13px;
    color: #5f6368;
    line-height: 1.4;
}

.google-signin-btn-wrapper {
    margin-top: 4px;
}

/* ===== Signed-in state ===== */
.google-signin-avatar-wrap {
    margin-bottom: 4px;
}

.google-signin-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
}

.google-signin-signout-btn {
    margin-top: 8px;
    background: none;
    color: #d93025;
    border: 1px solid #d93025;
    border-radius: 20px;
    padding: 8px 24px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.google-signin-signout-btn:hover {
    background: #d93025;
    color: #fff;
}

/* ===== Floating trigger button ===== */
.google-signin-trigger {
    position: fixed;
    bottom: 70px;
    right: 20px;
    z-index: 99999999 !important;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: box-shadow 0.2s, transform 0.2s;
}


.google-signin-trigger {
    right: auto;
    left: 20px;
}
.rtlchannels {
    left: auto;
    right: 14px;
}
.google-signin-trigger:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    transform: scale(1.05);
}

.google-signin-trigger-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.google-signin-trigger-avatar-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

/* ===== Responsive ===== */
@media screen and (max-width: 480px) {
    .google-signin-overlay {
        padding: 16px;
    }

    .google-signin-modal {
        padding: 24px 16px;
        border-radius: 12px;
    }

    .google-signin-trigger {
        bottom: 75px;
        right: 14px;
        width: 44px;
        height: 44px;
    }

    
    .google-signin-trigger {
        right: auto;
        left: 14px;
    }
    .rtlchannels {
        left: auto;
        right: 14px;
    }
    .google-signin-trigger-avatar-img {
        width: 32px;
        height: 32px;
    }
}
