/* Greeting Modal */
.greeting-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 12, 16, 0.75);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity .3s ease;
}

.greeting-modal {
    background: #1a1a24;
    border: 1px solid #3a2a4a;
    border-radius: 12px;
    width: 520px;
    max-width: calc(100% - 32px);
    box-shadow: 
        0 10px 30px rgba(0,0,0,.5),
        0 0 30px rgba(138, 43, 226, 0.2);
    position: relative;
    padding: 24px;
    color: #fff;
    transform: translateY(10px) scale(.98);
    opacity: 0;
    transition: transform .3s ease, opacity .3s ease;
}

.greeting-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: transparent;
    border: none;
    color: #bdbdc7;
    font-size: 22px;
    cursor: pointer;
    transition: color .2s ease;
}

.greeting-close:hover {
    color: #da70d6;
}

.greeting-content {
    display: flex;
    gap: 16px;
    align-items: center;
}

.greeting-icon img {
    width: 96px;
    height: 96px;
    filter: drop-shadow(0 0 10px rgba(186, 85, 211, 0.3));
}

.greeting-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
    background: linear-gradient(90deg, #e0b0ff, #da70d6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 10px rgba(218, 112, 214, 0.4);
}

.greeting-subtitle {
    font-size: 14px;
    opacity: .85;
    color: #d8d8e0;
}

.greeting-actions {
    margin-top: 14px;
}

.tg-button {
    display: inline-block;
    padding: 10px 16px;
    background: linear-gradient(135deg, #8a2be2, #ba55d3);
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: 
        filter .2s ease-in-out,
        transform .1s ease-in-out,
        box-shadow .3s ease;
    box-shadow: 
        0 4px 15px rgba(138, 43, 226, 0.4),
        0 0 20px rgba(186, 85, 211, 0.3);
}

.tg-button:hover {
    filter: brightness(1.1);
    box-shadow: 
        0 6px 20px rgba(138, 43, 226, 0.5),
        0 0 25px rgba(186, 85, 211, 0.4);
}

.tg-button:active {
    transform: translateY(1px);
    box-shadow: 
        0 2px 10px rgba(138, 43, 226, 0.4),
        0 0 15px rgba(186, 85, 211, 0.3);
}

/* Open state helpers (toggled by JS) */
.greeting-overlay.is-open {
    opacity: 1;
}

.greeting-overlay.is-open .greeting-modal {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* Responsive */
@media (max-width: 480px) {
    .greeting-modal {
        padding: 18px;
        box-shadow: 
            0 8px 25px rgba(0,0,0,.5),
            0 0 20px rgba(138, 43, 226, 0.15);
    }
    .greeting-content {
        gap: 12px;
    }
    .greeting-icon img {
        width: 72px;
        height: 72px;
    }
}