#status-message {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    font-weight: 600;
    font-size: 0.95rem;
    z-index: 10000;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    pointer-events: none;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
#status-message.show {
    bottom: calc(50px + env(safe-area-inset-bottom));
    opacity: 1;
}
#status-message.success {
    background-color: var(--primary-green);
    box-shadow: 0 4px 15px rgba(52, 199, 89, 0.4);
}
#status-message.success::before { content: '✓'; font-size: 1.2rem; font-weight: 700; }
#status-message.error {
    background-color: var(--theme-red);
    box-shadow: 0 4px 15px rgba(255, 59, 48, 0.4);
}
#status-message.error::before { content: '✕'; font-size: 1.2rem; font-weight: 700; }

.gift-modal-overlay { 
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    z-index: 9999; display: flex; align-items: center; justify-content: center;
    padding: 1rem; opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.gift-modal-overlay.visible { opacity: 1; pointer-events: auto; }
.gift-modal {
    background: var(--card-background);
    color: var(--text-light);
    border-radius: 24px; padding: 2rem 1.5rem; max-width: 320px; width: 100%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4); border: 1px solid var(--border-color);
    transform: scale(0.9); transition: transform 0.3s ease; position: relative;
}
.gift-modal-overlay.visible .gift-modal { transform: scale(1); }
.gift-modal-close {
    position: absolute; top: 1rem; right: 1rem; width: 32px; height: 32px;
    border: none; background: var(--background-dark); border-radius: 50%;
    color: var(--text-secondary); font-size: 1.5rem; cursor: pointer; display: flex;
    align-items: center; justify-content: center; transition: background-color 0.2s;
}
.gift-modal-close:hover { background: #e5e5ea; }
.gift-modal-icon { width: 100px; height: 100px; margin: 0 auto 1.5rem; display: flex; align-items: center; justify-content: center; }
.gift-modal-icon img { max-width: 100%; max-height: 100%; object-fit: contain; }
.gift-modal-title { font-size: 1.3rem; font-weight: 700; color: var(--text-light); text-align: center; margin-bottom: 0.5rem; }
.gift-modal-from { font-size: 0.9rem; color: var(--text-secondary); text-align: center; margin-bottom: 1rem; display: flex; align-items: center; justify-content: center; gap: 0.5rem; }
.sender-avatar-small { width: 28px; height: 28px; border-radius: 50%; background-size: cover; background-position: center; background-color: var(--background-dark); border: 1px solid var(--border-color); }
.gift-modal-message { background: var(--background-dark); border-radius: 12px; padding: 1rem; font-size: 0.95rem; color: #3c3c43; line-height: 1.5; text-align: center; min-height: 60px; }
.gift-modal-date { font-size: 0.8rem; color: var(--text-secondary); text-align: center; margin-top: 1rem; }
.avatar-modal .gift-modal { background: var(--card-background); }
.avatar-modal .gift-modal-close { background: var(--background-dark); color: var(--text-secondary); }
.avatar-modal .gift-modal-close:hover { background: #e5e5ea; }
.avatar-modal .gift-modal-title { color: var(--text-light); }
.avatar-modal .gift-modal-from { color: var(--text-secondary); }
.avatar-modal .sender-avatar-small { border-color: var(--border-color); }
.avatar-modal .gift-modal-message { background: var(--background-dark); color: #3c3c43; }
.avatar-modal .gift-modal-date { color: var(--text-secondary); }
