.sticker-picker {
    display: none;
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 74px;
    width: auto;
    max-width: 360px;
    max-height: 380px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    z-index: 150;
    animation: slideUp 0.2s ease;
    margin: 0 auto;
}

.sticker-picker.active {
    display: flex;
    flex-direction: column;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.sticker-tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
    background: var(--bg-primary);
}

.sticker-tab {
    flex: 1;
    padding: 12px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sticker-tab:hover {
    color: var(--text-primary);
    background: var(--surface-hover);
}

.sticker-tab.active {
    color: var(--accent);
    border-bottom: 2px solid var(--accent);
}

.sticker-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sticker-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    padding: 12px;
    overflow-y: auto;
}

.sticker-item {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.sticker-item:hover {
    background: var(--surface-hover);
    transform: scale(1.1);
}

.gif-tab-content {
    flex: 1;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.gif-search-box {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    position: relative;
}

.gif-search-icon {
    position: absolute;
    left: 22px;
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    pointer-events: none;
}

.gif-search-input {
    width: 100%;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 12px 8px 32px;
    color: var(--text-primary);
    font-size: 13px;
    outline: none;
}

.gif-search-input:focus {
    border-color: rgba(59, 130, 246, 0.3);
}

.gif-search-input::placeholder {
    color: var(--text-muted);
}

.gif-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 12px;
    overflow-y: auto;
    align-content: start;
}

.gif-item {
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--bg-tertiary);
    position: relative;
}

.gif-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.gif-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gif-loading, .gif-empty {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-size: 13px;
}

.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.sticker-btn {
    width: 40px;
    height: 40px;
    color: var(--text-secondary);
}

.sticker-btn:hover {
    color: var(--accent);
}
