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

.greeting-modal {
    background: #1f1f28;
    border: 1px solid #2a2a36;
    border-radius: 12px;
    width: 520px;
    max-width: calc(100% - 32px);
    box-shadow: 0 10px 30px rgba(0,0,0,.35);
    position: relative;
    padding: 24px;
    color: #fff;
    transform: translateY(10px) scale(.98);
    opacity: 0;
    transition: transform .25s ease, opacity .25s ease;
}

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

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

.greeting-icon img {
    width: 96px;
    height: 96px;
}

.greeting-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
    background: linear-gradient(90deg, #fff, #a6d8ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

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

.tg-button {
    display: inline-block;
    padding: 10px 16px;
    background: linear-gradient(135deg, #229ED9, #52c3f1);
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: filter .15s ease-in-out, transform .05s ease-in-out, box-shadow .2s ease;
    box-shadow: 0 6px 16px rgba(34,158,217,.35);
}

.tg-button:hover {
    filter: brightness(1.05);
}

.tg-button:active {
    transform: translateY(1px);
}

/* 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;
    }
    .greeting-content {
        gap: 12px;
    }
    .greeting-icon img {
        width: 72px;
        height: 72px;
    }
}